aboutsummaryrefslogtreecommitdiff
path: root/174bg/discord-bot/main.js
diff options
context:
space:
mode:
Diffstat (limited to '174bg/discord-bot/main.js')
-rw-r--r--174bg/discord-bot/main.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/174bg/discord-bot/main.js b/174bg/discord-bot/main.js
index 2f1ae87..cbbdebf 100644
--- a/174bg/discord-bot/main.js
+++ b/174bg/discord-bot/main.js
@@ -17,14 +17,12 @@ const commands = [
.setName("scope")
.setDescription("Returns the current scope of the bot."),
execute: async (interaction) => {
- const scope = {
+ await interaction.reply(codewrap("json", JSON.stringify({
guildIdFromEnv: process.env.DISCORD_GUILD_ID,
guildIdFromInteraction: interaction.guild.id,
doGuildIdsMatch:
process.env.DISCORD_GUILD_ID === interaction.guild.id,
- };
-
- await interaction.reply(codewrap("json", JSON.stringify(scope, null, 2)));
+ }, null, 2)));
}
},
{