Skip to content

Commit

Permalink
temp disable hook
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Sep 23, 2024
1 parent 112f707 commit f3bf3c6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions commands/broadcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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!');
Expand Down

0 comments on commit f3bf3c6

Please sign in to comment.