diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-28 18:54:18 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-28 18:54:18 -0400 |
commit | 6974a5859658b966954a59411a800223b7542df8 (patch) | |
tree | 9f1b4eae137d3253e1530bd30b78ab73b985c9ca /src/commands/moderation | |
parent | b581073e0deb4f96510d72001513db64f3cc01ab (diff) | |
download | tanzanite-6974a5859658b966954a59411a800223b7542df8.tar.gz tanzanite-6974a5859658b966954a59411a800223b7542df8.tar.bz2 tanzanite-6974a5859658b966954a59411a800223b7542df8.zip |
fix breaking changes and bump dependencies
Diffstat (limited to 'src/commands/moderation')
-rw-r--r-- | src/commands/moderation/ban.ts | 7 | ||||
-rw-r--r-- | src/commands/moderation/kick.ts | 5 | ||||
-rw-r--r-- | src/commands/moderation/mute.ts | 7 | ||||
-rw-r--r-- | src/commands/moderation/role.ts | 5 |
4 files changed, 10 insertions, 14 deletions
diff --git a/src/commands/moderation/ban.ts b/src/commands/moderation/ban.ts index 9d7eb4d..7ce222a 100644 --- a/src/commands/moderation/ban.ts +++ b/src/commands/moderation/ban.ts @@ -1,5 +1,4 @@ import { Argument } from 'discord-akairo'; -import { ApplicationCommandOptionType } from 'discord-api-types'; import { CommandInteraction, Message, User } from 'discord.js'; import moment from 'moment'; import { BushCommand } from '../../lib/extensions/BushCommand'; @@ -53,19 +52,19 @@ export default class BanCommand extends BushCommand { }, slashOptions: [ { - type: ApplicationCommandOptionType.USER, + type: 'USER', name: 'user', description: 'Who would you like to ban?', required: true }, { - type: ApplicationCommandOptionType.STRING, + type: 'STRING', name: 'reason', description: 'Why are they getting banned?', required: false }, { - type: ApplicationCommandOptionType.STRING, + type: 'STRING', name: 'time', description: 'How long should they be banned for?', required: false diff --git a/src/commands/moderation/kick.ts b/src/commands/moderation/kick.ts index d7fdfbd..748753f 100644 --- a/src/commands/moderation/kick.ts +++ b/src/commands/moderation/kick.ts @@ -1,4 +1,3 @@ -import { ApplicationCommandOptionType } from 'discord-api-types'; import { CommandInteraction, GuildMember, Message } from 'discord.js'; import { BushCommand } from '../../lib/extensions/BushCommand'; import { BushSlashMessage } from '../../lib/extensions/BushSlashMessage'; @@ -33,13 +32,13 @@ export default class KickCommand extends BushCommand { }, slashOptions: [ { - type: ApplicationCommandOptionType.USER, + type: 'USER', name: 'user', description: 'The user to kick', required: true }, { - type: ApplicationCommandOptionType.STRING, + type: 'STRING', name: 'reason', description: 'The reason to show in modlogs and audit log', required: false diff --git a/src/commands/moderation/mute.ts b/src/commands/moderation/mute.ts index eeb2d04..9b6ad70 100644 --- a/src/commands/moderation/mute.ts +++ b/src/commands/moderation/mute.ts @@ -1,5 +1,4 @@ import { Argument } from 'discord-akairo'; -import { ApplicationCommandOptionType } from 'discord-api-types'; import { CommandInteraction, Message, User } from 'discord.js'; import moment from 'moment'; import { BushCommand } from '../../lib/extensions/BushCommand'; @@ -44,19 +43,19 @@ export default class MuteCommand extends BushCommand { }, slashOptions: [ { - type: ApplicationCommandOptionType.USER, + type: 'USER', name: 'user', description: 'The user to mute.', required: true }, { - type: ApplicationCommandOptionType.STRING, + type: 'STRING', name: 'reason', description: 'Why the user is getting muted.', required: false }, { - type: ApplicationCommandOptionType.STRING, + type: 'STRING', name: 'time', description: 'How long the user should be muted for.', required: false diff --git a/src/commands/moderation/role.ts b/src/commands/moderation/role.ts index 4eb745d..f0918f0 100644 --- a/src/commands/moderation/role.ts +++ b/src/commands/moderation/role.ts @@ -1,5 +1,4 @@ /* eslint-disable @typescript-eslint/no-empty-function */ -import { ApplicationCommandOptionType } from 'discord-api-types'; import { GuildMember, Message, Role } from 'discord.js'; import { BushCommand } from '../../lib/extensions/BushCommand'; import AllowedMentions from '../../lib/utils/AllowedMentions'; @@ -58,13 +57,13 @@ export default class RoleCommand extends BushCommand { ], slashOptions: [ { - type: ApplicationCommandOptionType.USER, + type: 'USER', name: 'user', description: 'The user to add/remove the role on', required: true }, { - type: ApplicationCommandOptionType.ROLE, + type: 'ROLE', name: 'role', description: 'The role to add/remove', required: true |