aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush/giveawayping.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moulberry-bush/giveawayping.ts')
-rw-r--r--src/commands/moulberry-bush/giveawayping.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commands/moulberry-bush/giveawayping.ts b/src/commands/moulberry-bush/giveawayping.ts
index e96b073..d99f475 100644
--- a/src/commands/moulberry-bush/giveawayping.ts
+++ b/src/commands/moulberry-bush/giveawayping.ts
@@ -43,14 +43,14 @@ export default class GiveawayPingCommand extends BotCommand {
'<:error:837123021016924261> This command may only be run in giveaway channels.'
);
await message.delete().catch(() => undefined);
- const webhooks = await (message.channel as
- | TextChannel
- | NewsChannel).fetchWebhooks();
+ const webhooks = await (
+ message.channel as TextChannel | NewsChannel
+ ).fetchWebhooks();
let webhookClient: WebhookClient;
if (webhooks.size < 1) {
- const webhook = await (message.channel as
- | TextChannel
- | NewsChannel).createWebhook('Giveaway ping webhook');
+ const webhook = await (
+ message.channel as TextChannel | NewsChannel
+ ).createWebhook('Giveaway ping webhook');
webhookClient = new WebhookClient(webhook.id, webhook.token);
} else {
const webhook = webhooks.first();