Skip to content

Commit 1ea5189

Browse files
committed
refactor: reorganize imports
1 parent 931a3d5 commit 1ea5189

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

src/commands/util/close.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { config } from "@lib/config.js";
2+
23
import { canUserInteractWithThread, getChannelFromInteraction, isHelpPost } from "@lib/channels.js";
34

45
import { type ThreadChannel, type ChatInputCommandInteraction, MessageFlags, SlashCommandBuilder } from "discord.js";

src/commands/util/walkthrough.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { config } from "@lib/config.js";
2+
3+
import { isHelpPost as isHelpThread } from "@lib/channels.js";
24
import issueCategorySelector from "@components/issueCategorySelector.js";
35

46
import {
@@ -9,7 +11,6 @@ import {
911
GuildTextBasedChannel,
1012
ThreadChannel
1113
} from "discord.js";
12-
import { isHelpPost as isHelpThread } from "@lib/channels.js";
1314

1415
export function generateMessage(question: string, component: StringSelectMenuBuilder, embeds: (EmbedBuilder | Embed)[] = []) {
1516
return {

src/deploy-commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as commands from "@commands/index.js";
21
import { config } from "@lib/config.js";
2+
import * as commands from "@commands/index.js";
33

44
import { REST, Routes } from "discord.js";
55

@@ -12,7 +12,7 @@ console.log(`Started refreshing ${commandData.length} application (/) commands.`
1212

1313
// The put method is used to fully refresh all commands in the guild with the current set
1414
const data: Array<Record<string, unknown>> = await rest.put(
15-
Routes.applicationGuildCommands("1063886601165471814", config.serverId),
15+
Routes.applicationGuildCommands("1063886601165471814", config.serverId), // TODO: guess client ID from token
1616
{ body: commandData },
1717
);
1818

src/ui/components/issueCategorySelector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ActionRowBuilder, StringSelectMenuBuilder, StringSelectMenuOptionBuilder } from "discord.js";
1+
import { StringSelectMenuBuilder, StringSelectMenuOptionBuilder } from "discord.js";
22

33
const options = [
44
new StringSelectMenuOptionBuilder()

src/ui/components/productSelector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { config } from "@lib/config.js";
22

3-
import { ActionRowBuilder, StringSelectMenuBuilder, StringSelectMenuOptionBuilder } from "discord.js";
3+
import { StringSelectMenuBuilder, StringSelectMenuOptionBuilder } from "discord.js";
44

55
const options = [
66
new StringSelectMenuOptionBuilder()

0 commit comments

Comments
 (0)