diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-23 22:02:44 -0400 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-23 22:02:44 -0400 |
| commit | b015bec7f66526ec5e959ae99865845f4db4b181 (patch) | |
| tree | 67538c9549b7e0f7cd6a97e9c82db8d8462a19c7 /src/commands | |
| parent | 5c242f597595b8db71875d92c0afe0a5947442a6 (diff) | |
| download | tanzanite-b015bec7f66526ec5e959ae99865845f4db4b181.tar.gz tanzanite-b015bec7f66526ec5e959ae99865845f4db4b181.tar.bz2 tanzanite-b015bec7f66526ec5e959ae99865845f4db4b181.zip | |
feat: some shit
- fix breaking changes
- refactored active punishments into one table
- made listeners args have stricter types
Diffstat (limited to 'src/commands')
| -rw-r--r-- | src/commands/dev/eval.ts | 2 | ||||
| -rw-r--r-- | src/commands/dev/servers.ts | 4 | ||||
| -rw-r--r-- | src/commands/moderation/removeReactionEmoji.ts | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 0de0aa1..f8ba7e1 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -181,7 +181,7 @@ export default class EvalCommand extends BushCommand { members = message.guild?.members, roles = message.guild?.roles, client = this.client, - { Ban, Global, Guild, Level, ModLog, StickyRole } = await import('@lib'), + { ActivePunishment, Global, Guild, Level, ModLog, StickyRole } = await import('@lib'), { ButtonInteraction, Collector, diff --git a/src/commands/dev/servers.ts b/src/commands/dev/servers.ts index 08f74e8..3986451 100644 --- a/src/commands/dev/servers.ts +++ b/src/commands/dev/servers.ts @@ -4,7 +4,7 @@ import { BushCommand, BushMessage, BushSlashMessage } from '../../lib'; export default class ServersCommand extends BushCommand { public constructor() { super('servers', { - aliases: ['servers'], + aliases: ['servers', 'guilds'], category: 'dev', description: { content: 'Displays all the severs the bot is in', @@ -37,7 +37,7 @@ export default class ServersCommand extends BushCommand { `**ID:** ${g.id}\n**Owner:** ${owner ? owner : g.ownerId}\n**Members:** ${g.memberCount.toLocaleString()}`, false ) - .setTitle('Server List') + .setTitle(`Server List [${this.client.guilds.cache.size}]`) .setColor(this.client.util.colors.default); }); embeds.push(embed); diff --git a/src/commands/moderation/removeReactionEmoji.ts b/src/commands/moderation/removeReactionEmoji.ts index 3d274e1..b0079c6 100644 --- a/src/commands/moderation/removeReactionEmoji.ts +++ b/src/commands/moderation/removeReactionEmoji.ts @@ -13,7 +13,7 @@ export default class RemoveReactionEmojiCommand extends BushCommand { examples: ['removereactionemoji 791413052347252786 <:omegaclown:782630946435366942>'] }, clientPermissions: ['MANAGE_MESSAGES', 'SEND_MESSAGES', 'EMBED_LINKS'], - userPermissions: ['MANAGE_MESSAGES', 'MANAGE_EMOJIS'], // Can't undo the removal of 1000s of reactions + userPermissions: ['MANAGE_MESSAGES', 'MANAGE_EMOJIS_AND_STICKERS'], // Can't undo the removal of 1000s of reactions args: [ { id: 'messageToRemoveFrom', |
