diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-31 21:17:27 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-31 21:17:27 -0400 |
commit | 46bbadd71aa99bc657931971f9f5ad5659f0c17c (patch) | |
tree | b95c77578ca0f7d17405be5f89373de3f91af187 /src/commands/moulberry-bush | |
parent | f850b708da87e56f2a1469b65560f8342e2c0f2b (diff) | |
download | tanzanite-46bbadd71aa99bc657931971f9f5ad5659f0c17c.tar.gz tanzanite-46bbadd71aa99bc657931971f9f5ad5659f0c17c.tar.bz2 tanzanite-46bbadd71aa99bc657931971f9f5ad5659f0c17c.zip |
refactoring and fixes
Diffstat (limited to 'src/commands/moulberry-bush')
-rw-r--r-- | src/commands/moulberry-bush/moulHammerCommand.ts | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/commands/moulberry-bush/moulHammerCommand.ts b/src/commands/moulberry-bush/moulHammerCommand.ts new file mode 100644 index 0000000..bc60372 --- /dev/null +++ b/src/commands/moulberry-bush/moulHammerCommand.ts @@ -0,0 +1,38 @@ +import { MessageEmbed, User } from 'discord.js'; +import { BushCommand, BushMessage } from '../../lib'; + +export default class MoulHammerCommand extends BushCommand { + public constructor() { + super('moulHammer', { + aliases: ['moulhammer'], + category: "Moulberry's Bush", + description: { + content: 'A command to moul hammer members.', + usage: 'moulHammer <user>', + examples: ['moulHammer @IRONM00N'] + }, + clientPermissions: ['EMBED_LINKS', 'SEND_MESSAGES'], + userPermissions: ['SEND_MESSAGES'], + args: [ + { + id: 'user', + type: 'user', + prompt: { + start: 'What user would you like to moul hammer?', + retry: '{error} Choose a valid user to moul hammer' + } + } + ], + restrictedGuilds: ['516977525906341928'] + }); + } + + public override async exec(message: BushMessage, { user }: { user: User }): Promise<void> { + await message.delete(); + const embed = new MessageEmbed() + .setTitle('L') + .setDescription(`${user.username} got moul'ed <:wideberry1:756223352598691942><:wideberry2:756223336832303154>`) + .setColor(this.client.util.colors.purple); + await message.util.send({ embeds: [embed] }); + } +} |