From f3bf3c62a46aa6dcc36eec3ab656cb842be21059 Mon Sep 17 00:00:00 2001 From: Phil Date: Mon, 23 Sep 2024 20:09:56 +0200 Subject: [PATCH] temp disable hook --- commands/broadcast.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/commands/broadcast.js b/commands/broadcast.js index 9b2bf3f..32e0e0e 100644 --- a/commands/broadcast.js +++ b/commands/broadcast.js @@ -8,11 +8,11 @@ function getChannels() { } async function sendMessage(channel, author, body) { - const embed = new MessageEmbed() - .setAuthor({ name: `${author} broadcasted` }) - .setDescription(body) - .setColor(4182379); - channel.send({ embeds: [embed] }); + const embed = new MessageEmbed() + .setAuthor({ name: `${author} broadcasted` }) + .setDescription(body) + .setColor(4182379); + channel.send({ embeds: [embed] }); } module.exports.run = async (interaction) => { @@ -43,9 +43,9 @@ module.exports.run = async (interaction) => { }); } if (errCreateWebhook) return; - await hook.send({ - content: body, username, avatarURL, - }).catch(ERR); + // await hook.send({ + // content: body, username, avatarURL, + // }).catch(ERR); }); await messageSuccess(interaction, 'Sent messages to all servers!');