From ad023a9558f336b56f013022befdf948db77b247 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 24 Apr 2024 22:18:11 -0600 Subject: [PATCH] Add silent option --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 13b094f..acc22db 100644 --- a/index.js +++ b/index.js @@ -296,6 +296,12 @@ client.on("ready", async () => { description: "Why is the defcon changing to this level?", required: true, type: 3 + }, + { + name: "silent", + type: 5, + description: "Don't send the @everyone funny ping", + required: false } ] } @@ -335,7 +341,7 @@ client.on('interactionCreate', async interaction => { // Send automated announcement. color = parseInt(config.DEFCON.levels[defcon].color.replace("#", ""), 16); client.channels.cache.get(config.discord.announcement_channel).send({ - content: config.discord.announcment_content, + content: interaction.options.getBoolean("silent") ? "" : config.discord.announcment_content, embeds: [ { color,