diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-28 09:27:41 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-28 09:27:41 -0500 |
commit | 453683b57b8ff013ff25e2aaa4aa1d2e047edcb7 (patch) | |
tree | 8b98d2f30dbb6a8448602446cfacf9091667cc33 /src/commands/moulberry-bush/moulHammer.ts | |
parent | de4c3dcaf172804d34ae708be1ed3e75af42f4d5 (diff) | |
download | tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.tar.gz tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.tar.bz2 tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.zip |
a few small changes
Diffstat (limited to 'src/commands/moulberry-bush/moulHammer.ts')
-rw-r--r-- | src/commands/moulberry-bush/moulHammer.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/commands/moulberry-bush/moulHammer.ts b/src/commands/moulberry-bush/moulHammer.ts index 98ef78f..2811f80 100644 --- a/src/commands/moulberry-bush/moulHammer.ts +++ b/src/commands/moulberry-bush/moulHammer.ts @@ -1,4 +1,4 @@ -import { BushCommand, type BushMessage } from '#lib'; +import { BushCommand, BushSlashMessage, type BushMessage } from '#lib'; import { MessageEmbed, type User } from 'discord.js'; export default class MoulHammerCommand extends BushCommand { @@ -6,28 +6,28 @@ export default class MoulHammerCommand extends BushCommand { super('moulHammer', { aliases: ['moul-hammer'], category: "Moulberry's Bush", - description: { - content: 'A command to moul hammer members.', - usage: ['moul-hammer <user>'], - examples: ['moul-hammer @IRONM00N'] - }, + description: 'A command to moul hammer members.', + usage: ['moul-hammer <user>'], + examples: ['moul-hammer @IRONM00N'], args: [ { id: 'user', + description: 'The user to moul hammer.', type: 'user', - prompt: { - start: 'What user would you like to moul hammer?', - retry: '{error} Choose a valid user to moul hammer' - } + prompt: 'What user would you like to moul hammer?', + retry: '{error} Choose a valid user to moul hammer', + slashType: 'USER' } ], + slash: true, + slashGuilds: ['516977525906341928'], restrictedGuilds: ['516977525906341928'], clientPermissions: (m) => util.clientSendAndPermCheck(m, ['EMBED_LINKS'], true), userPermissions: [] }); } - public override async exec(message: BushMessage, { user }: { user: User }) { + public override async exec(message: BushMessage | BushSlashMessage, { user }: { user: User }) { await message.delete(); const embed = new MessageEmbed() .setTitle('L') |