From e10626e9ea388880d28eaf7be1a34d183f82e42f Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Wed, 15 Jul 2026 11:44:17 +0100 Subject: simplify scope command reply structure --- 174bg/discord-bot/main.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to '174bg/discord-bot') 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))); } }, { -- cgit v1.2.3