aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush/giveawayPing.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-19 16:43:37 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-19 16:43:37 -0400
commitea64ebfff9aae32deb036643422d3427959dcd24 (patch)
tree5ab83558642bad282515837424637070f547a05e /src/commands/moulberry-bush/giveawayPing.ts
parentd055e0dbb86ef7fd4ee96a1531b51181e825fb4b (diff)
downloadtanzanite-ea64ebfff9aae32deb036643422d3427959dcd24.tar.gz
tanzanite-ea64ebfff9aae32deb036643422d3427959dcd24.tar.bz2
tanzanite-ea64ebfff9aae32deb036643422d3427959dcd24.zip
feat(*): A bunch of stuff
- Remade logging - updated dependencies - started adding custom crap to the command handler - added emojis to stuff - can't remeber other stuff Note: this is currently broken BREAKING CHANGE:
Diffstat (limited to 'src/commands/moulberry-bush/giveawayPing.ts')
-rw-r--r--src/commands/moulberry-bush/giveawayPing.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/commands/moulberry-bush/giveawayPing.ts b/src/commands/moulberry-bush/giveawayPing.ts
index 9a03140..d308602 100644
--- a/src/commands/moulberry-bush/giveawayPing.ts
+++ b/src/commands/moulberry-bush/giveawayPing.ts
@@ -24,9 +24,9 @@ export default class GiveawayPingCommand extends BushCommand {
}
public async exec(message: Message): Promise<unknown> {
if (message.guild.id !== '516977525906341928')
- return message.reply("<:error:837123021016924261> This command may only be run in Moulberry's Bush.");
+ return message.reply(`${this.client.util.emojis.error} This command may only be run in Moulberry's Bush.`);
if (!['767782084981817344', '833855738501267456'].includes(message.channel.id))
- return message.reply('<:error:837123021016924261> This command may only be run in giveaway channels.');
+ return message.reply(`${this.client.util.emojis.error} This command may only be run in giveaway channels.`);
await message.delete().catch(() => undefined);
const webhooks = await (message.channel as TextChannel | NewsChannel).fetchWebhooks();
let webhookClient: WebhookClient;
@@ -38,8 +38,7 @@ export default class GiveawayPingCommand extends BushCommand {
webhookClient = new WebhookClient(webhook.id, webhook.token);
}
return webhookClient.send({
- content:
- '🎉 <@&767782793261875210> Giveaway.\n\n<:mad:783046135392239626> Spamming, line breaking, gibberish etc. disqualifies you from winning. We can and will ban you from giveaways. Winners will all be checked and rerolled if needed.',
+ content: `🎉 <@&767782793261875210> Giveaway.\n\n${this.client.util.emojis.mad} Spamming, line breaking, gibberish etc. disqualifies you from winning. We can and will ban you from giveaways. Winners will all be checked and rerolled if needed.`,
username: `${message.member.nickname || message.author.username}`,
avatarURL: message.author.avatarURL({ dynamic: true }),
allowedMentions: AllowedMentions.roles()