diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-05-26 21:53:35 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-05-26 21:53:35 -0400 |
commit | cd0f853a2e4732cea5356f9ee3603bb804b0ab1f (patch) | |
tree | ac2f6ced46dfae7ca376e4dbd957d99a341d86a9 /src/commands/moderation | |
parent | 0caccda67d97dd74405aa4ece5d3f07e7c7dfc66 (diff) | |
download | tanzanite-cd0f853a2e4732cea5356f9ee3603bb804b0ab1f.tar.gz tanzanite-cd0f853a2e4732cea5356f9ee3603bb804b0ab1f.tar.bz2 tanzanite-cd0f853a2e4732cea5356f9ee3603bb804b0ab1f.zip |
made some more changes
Diffstat (limited to 'src/commands/moderation')
-rw-r--r-- | src/commands/moderation/banCommand.ts (renamed from src/commands/moderation/ban.ts) | 3 | ||||
-rw-r--r-- | src/commands/moderation/kickCommand.ts (renamed from src/commands/moderation/kick.ts) | 1 | ||||
-rw-r--r-- | src/commands/moderation/modlogCommand.ts (renamed from src/commands/moderation/modlog.ts) | 1 | ||||
-rw-r--r-- | src/commands/moderation/roleCommand.ts (renamed from src/commands/moderation/role.ts) | 2 | ||||
-rw-r--r-- | src/commands/moderation/warnCommand.ts (renamed from src/commands/moderation/warn.ts) | 1 |
5 files changed, 6 insertions, 2 deletions
diff --git a/src/commands/moderation/ban.ts b/src/commands/moderation/banCommand.ts index 1c3b074..354fc0d 100644 --- a/src/commands/moderation/ban.ts +++ b/src/commands/moderation/banCommand.ts @@ -18,10 +18,11 @@ const durationAliases: Record<string, string[]> = { const durationRegex = /(?:(\d+)(d(?:ays?)?|h(?:ours?|rs?)?|m(?:inutes?|ins?)?|mo(?:nths?)?|w(?:eeks?|ks?)?)(?: |$))/g; -export default class PrefixCommand extends BushCommand { +export default class BanCommand extends BushCommand { constructor() { super('ban', { aliases: ['ban'], + category: "moderation", args: [ { id: 'user', diff --git a/src/commands/moderation/kick.ts b/src/commands/moderation/kickCommand.ts index c21352f..132ca31 100644 --- a/src/commands/moderation/kick.ts +++ b/src/commands/moderation/kickCommand.ts @@ -8,6 +8,7 @@ export default class KickCommand extends BushCommand { constructor() { super('kick', { aliases: ['kick'], + category: "moderation", args: [ { id: 'user', diff --git a/src/commands/moderation/modlog.ts b/src/commands/moderation/modlogCommand.ts index b7923ca..3e394ba 100644 --- a/src/commands/moderation/modlog.ts +++ b/src/commands/moderation/modlogCommand.ts @@ -10,6 +10,7 @@ export default class ModlogCommand extends BushCommand { constructor() { super('modlog', { aliases: ['modlog', 'modlogs'], + category: "moderation", args: [ { id: 'search', diff --git a/src/commands/moderation/role.ts b/src/commands/moderation/roleCommand.ts index 29339a3..04437ba 100644 --- a/src/commands/moderation/role.ts +++ b/src/commands/moderation/roleCommand.ts @@ -42,7 +42,7 @@ export default class RoleCommand extends BushCommand { constructor() { super('role', { aliases: ['role', 'addrole', 'removerole'], - category: "Moulberry's Bush", + category: "moderation", description: { content: "Manages users' roles.", usage: 'role <add|remove> <user> <role>', diff --git a/src/commands/moderation/warn.ts b/src/commands/moderation/warnCommand.ts index e8b1401..ea2d7ee 100644 --- a/src/commands/moderation/warn.ts +++ b/src/commands/moderation/warnCommand.ts @@ -6,6 +6,7 @@ export default class WarnCommand extends BushCommand { public constructor() { super('warn', { aliases: ['warn'], + category: "moderation", userPermissions: ['MANAGE_MESSAGES'], args: [ { |