From 42d2e2bf01b5debd4ecf605297f925ad5da7deb3 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 30 Sep 2021 16:48:07 -0400 Subject: I did this 2 weeks ago idk what I did --- src/commands/moderation/_lockdown.ts | 2 +- src/commands/moderation/hideCase.ts | 5 ++++- src/commands/moderation/mute.ts | 8 ++++---- src/commands/moderation/role.ts | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) (limited to 'src/commands/moderation') 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 { - 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 [duration]', - examples: ['role add spammer nogiveaways 7days'] + examples: ['role add spammer nogiveaways 7days', 'ra tyman muted', 'rr tyman staff'] }, slash: true, slashOptions: [ -- cgit