aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/log.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config/log.ts')
-rw-r--r--src/commands/config/log.ts14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/commands/config/log.ts b/src/commands/config/log.ts
index 5906623..4c9a20b 100644
--- a/src/commands/config/log.ts
+++ b/src/commands/config/log.ts
@@ -1,6 +1,6 @@
import { BushCommand, guildLogsArr, type ArgType, type BushMessage, type BushSlashMessage, type GuildLogType } from '#lib';
-import { type ArgumentOptions, type Flag } from 'discord-akairo';
-import { ApplicationCommandOptionType, Permissions } from 'discord.js';
+import { ArgumentGeneratorReturn } from 'discord-akairo';
+import { ApplicationCommandOptionType, ChannelType, Permissions } from 'discord.js';
export default class LogCommand extends BushCommand {
public constructor() {
@@ -26,7 +26,13 @@ export default class LogCommand extends BushCommand {
type: 'channel',
prompt: 'What channel would you like these logs to be sent in?',
slashType: ApplicationCommandOptionType.Channel,
- channelTypes: ['GuildText', 'GuildNews', 'GuildNewsThread', 'GuildPublicThread', 'GuildPrivateThread'],
+ channelTypes: [
+ ChannelType.GuildText,
+ ChannelType.GuildNews,
+ ChannelType.GuildNewsThread,
+ ChannelType.GuildPublicThread,
+ ChannelType.GuildPrivateThread
+ ],
only: 'slash'
}
],
@@ -36,7 +42,7 @@ export default class LogCommand extends BushCommand {
});
}
- public override *args(): IterableIterator<ArgumentOptions | Flag> {
+ public override *args(): ArgumentGeneratorReturn {
const log_type = yield {
id: 'log_type',
type: guildLogsArr,