aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-30 16:48:07 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-30 16:48:07 -0400
commit42d2e2bf01b5debd4ecf605297f925ad5da7deb3 (patch)
treedaf6678542cd8735f9930086f7a1e76ae6884e4e /src/commands/moderation
parent4ad90b19851a0853287c45d326a28be535b1607f (diff)
downloadtanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.tar.gz
tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.tar.bz2
tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.zip
I did this 2 weeks ago idk what I did
Diffstat (limited to 'src/commands/moderation')
-rw-r--r--src/commands/moderation/_lockdown.ts2
-rw-r--r--src/commands/moderation/hideCase.ts5
-rw-r--r--src/commands/moderation/mute.ts8
-rw-r--r--src/commands/moderation/role.ts2
4 files changed, 10 insertions, 7 deletions
diff --git a/src/commands/moderation/_lockdown.ts b/src/commands/moderation/_lockdown.ts
index 68197df..5df9f18 100644
--- a/src/commands/moderation/_lockdown.ts
+++ b/src/commands/moderation/_lockdown.ts
@@ -34,7 +34,7 @@ export default class LockdownCommand extends BushCommand {
}
public override async exec(message: BushMessage | BushSlashMessage, { all }: { all: boolean }): Promise<unknown> {
- return await message.util.reply('no');
+ return await message.util.reply('Unfortunately my developer is too lazy to implement this command.');
if (!all) {
if (!['GUILD_TEXT', 'GUILD_NEWS'].includes(message.channel!.type))
return message.util.reply(`${util.emojis.error} You can only lock down text and announcement channels.`);
diff --git a/src/commands/moderation/hideCase.ts b/src/commands/moderation/hideCase.ts
index 2529531..cf7b4de 100644
--- a/src/commands/moderation/hideCase.ts
+++ b/src/commands/moderation/hideCase.ts
@@ -20,7 +20,10 @@ export default class HideCaseCommand extends BushCommand {
}
}
],
- userPermissions: ['MANAGE_MESSAGES'],
+ userPermissions: (message) => {
+ return message.member?.permissions.has('MANAGE_MESSAGES') ? null : ['MANAGE_MESSAGES'];
+ },
+ clientPermissions: ['SEND_MESSAGES'],
slash: true,
slashOptions: [
{
diff --git a/src/commands/moderation/mute.ts b/src/commands/moderation/mute.ts
index de79b32..9e68d63 100644
--- a/src/commands/moderation/mute.ts
+++ b/src/commands/moderation/mute.ts
@@ -99,13 +99,13 @@ export default class MuteCommand extends BushCommand {
const prefix = await message.guild!.getSetting('prefix');
switch (responseCode) {
case 'missing permissions':
- return `${util.emojis.error} Could not mute ${victimBoldTag} because I am missing the \`Manage Roles\` permission.`;
+ return `${util.emojis.error} Could not mute ${victimBoldTag} because I am missing the **Manage Roles** permission.`;
case 'no mute role':
- return `${util.emojis.error} Could not mute ${victimBoldTag}, you must set a mute role with \`${prefix}muterole\`.`;
+ return `${util.emojis.error} Could not mute ${victimBoldTag}, you must set a mute role with \`${prefix}config muteRole\`.`;
case 'invalid mute role':
- return `${util.emojis.error} Could not mute ${victimBoldTag} because the current mute role no longer exists. Please set a new mute role with \`${prefix}muterole\`.`;
+ return `${util.emojis.error} Could not mute ${victimBoldTag} because the current mute role no longer exists. Please set a new mute role with \`${prefix}config muteRole\`.`;
case 'mute role not manageable':
- return `${util.emojis.error} Could not mute ${victimBoldTag} because I cannot assign the current mute role, either change the role's position or set a new mute role with \`${prefix}muterole\`.`;
+ return `${util.emojis.error} Could not mute ${victimBoldTag} because I cannot assign the current mute role, either change the role's position or set a new mute role with \`${prefix}config muteRole\`.`;
case 'error giving mute role':
return `${util.emojis.error} Could not mute ${victimBoldTag}, there was an error assigning them the mute role.`;
case 'error creating modlog entry':
diff --git a/src/commands/moderation/role.ts b/src/commands/moderation/role.ts
index fd7b817..8cdfea0 100644
--- a/src/commands/moderation/role.ts
+++ b/src/commands/moderation/role.ts
@@ -9,7 +9,7 @@ export default class RoleCommand extends BushCommand {
description: {
content: "Manages users' roles.",
usage: 'role <add|remove> <user> <role> [duration]',
- examples: ['role add spammer nogiveaways 7days']
+ examples: ['role add spammer nogiveaways 7days', 'ra tyman muted', 'rr tyman staff']
},
slash: true,
slashOptions: [