diff options
Diffstat (limited to 'src/commands/utilities')
-rw-r--r-- | src/commands/utilities/activity.ts | 5 | ||||
-rw-r--r-- | src/commands/utilities/calculator.ts | 5 | ||||
-rw-r--r-- | src/commands/utilities/suicide.ts | 6 |
3 files changed, 10 insertions, 6 deletions
diff --git a/src/commands/utilities/activity.ts b/src/commands/utilities/activity.ts index a2ca3e2..455bbf3 100644 --- a/src/commands/utilities/activity.ts +++ b/src/commands/utilities/activity.ts @@ -97,7 +97,10 @@ export default class YouTubeCommand extends BushCommand { description: 'What activity would you like to play?', type: 'STRING', required: true, - choices: Object.keys(activityMap).map((key) => ({ name: key, value: activityMap[key as keyof typeof activityMap] })) + choices: Object.keys(activityMap).map((key) => ({ + name: key, + value: activityMap[key as keyof typeof activityMap] + })) } ], clientPermissions: (m) => util.clientSendAndPermCheck(m), diff --git a/src/commands/utilities/calculator.ts b/src/commands/utilities/calculator.ts index 861a356..b32b29b 100644 --- a/src/commands/utilities/calculator.ts +++ b/src/commands/utilities/calculator.ts @@ -38,10 +38,7 @@ export default class CalculatorCommand extends BushCommand { }); } public override async exec(message: BushMessage | BushSlashMessage, args: { expression: string }) { - const decodedEmbed = new MessageEmbed().addField( - '📥 Input', - await util.inspectCleanRedactCodeblock(args.expression, 'mma') - ); + const decodedEmbed = new MessageEmbed().addField('📥 Input', await util.inspectCleanRedactCodeblock(args.expression, 'mma')); try { const calculated = /^(9\s*?\+\s*?10)|(10\s*?\+\s*?9)$/.test(args.expression) ? '21' : evaluate(args.expression); decodedEmbed diff --git a/src/commands/utilities/suicide.ts b/src/commands/utilities/suicide.ts index 3709e37..8d6f002 100644 --- a/src/commands/utilities/suicide.ts +++ b/src/commands/utilities/suicide.ts @@ -49,7 +49,11 @@ export default class TemplateCommand extends BushCommand { // If the original message was a reply -> imitate it !message.util.isSlashMessage(message) && message.reference?.messageId && message.guild && message.channel ? await message.channel.messages.fetch(message.reference!.messageId!).then(async (message1) => { - await message1.reply({ embeds: [suicideEmbed], allowedMentions: AllowedMentions.users(), target: message1 }); + await message1.reply({ + embeds: [suicideEmbed], + allowedMentions: AllowedMentions.users(), + target: message1 + }); }) : await message.util.send({ embeds: [suicideEmbed], allowedMentions: AllowedMentions.users() }) ); |