1
1
import {
2
- APIApplicationCommand ,
3
2
APIBaseInteraction ,
4
3
InteractionType ,
5
- APIApplicationCommandInteractionData ,
6
4
RESTPostAPIApplicationCommandsJSONBody ,
7
5
PermissionFlagsBits ,
8
6
ApplicationCommandType ,
@@ -16,11 +14,10 @@ import {
16
14
MessageFlags ,
17
15
InteractionResponseType ,
18
16
} from "discord-api-types/v10" ;
19
- import { Bot } from "../bot" ;
20
- import { Command } from "../command" ;
21
- import { getHelpChannels } from "../queries/getHelpChannels.query" ;
22
- import { addHelpChannel } from "../queries/addHelpChannel.query" ;
23
- import { removeHelpChannel } from "../queries/removeHelpChannel.query" ;
17
+ import type { Bot } from "../bot" ;
18
+ import { Command } from "../command" ;
19
+ import { addHelpChannel } from "../queries/addHelpChannel.query" ;
20
+ import { removeHelpChannel } from "../queries/removeHelpChannel.query" ;
24
21
25
22
export default class HelpChannelCommands
26
23
implements Command < APIChatInputApplicationCommandInteractionData >
@@ -140,11 +137,7 @@ export default class HelpChannelCommands
140
137
} ) ;
141
138
break ;
142
139
case "add" : {
143
- const channel = await this . resolveChannel (
144
- bot ,
145
- interaction ,
146
- subCommand
147
- ) ;
140
+ const channel = await this . resolveChannel ( bot , interaction , subCommand ) ;
148
141
149
142
if ( bot [ "help-channels" ] . has ( channel . id ) ) {
150
143
respond ( {
@@ -172,11 +165,7 @@ export default class HelpChannelCommands
172
165
break ;
173
166
}
174
167
case "remove" : {
175
- const channel = await this . resolveChannel (
176
- bot ,
177
- interaction ,
178
- subCommand
179
- ) ;
168
+ const channel = await this . resolveChannel ( bot , interaction , subCommand ) ;
180
169
181
170
if ( ! bot [ "help-channels" ] . has ( channel . id ) ) {
182
171
respond ( {
0 commit comments