From 5a7fa169d74ffe3bfadc30840ae369c134ef832c Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Tue, 24 Sep 2024 12:50:24 +0100 Subject: [PATCH] wordassoc: move to general folder as its not a game --- commands/{games => general}/wordassociation.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) rename commands/{games => general}/wordassociation.js (90%) diff --git a/commands/games/wordassociation.js b/commands/general/wordassociation.js similarity index 90% rename from commands/games/wordassociation.js rename to commands/general/wordassociation.js index db692c6..15c27f2 100644 --- a/commands/games/wordassociation.js +++ b/commands/general/wordassociation.js @@ -54,7 +54,7 @@ const getAssociatedWords = async (word) => { } }; -const createWordAssociationEmbed = (word, associatedWords) => { +const createWordAssociationEmbed = (word, associatedWords, guild) => { return new EmbedBuilder() .setColor("#0099ff") .setTitle("Word Association") @@ -66,7 +66,11 @@ const createWordAssociationEmbed = (word, associatedWords) => { inline: true, })) ) - .setTimestamp(); + .setTimestamp() + .setFooter({ + text: `${guild.name}`, + iconURL: guild.iconURL(), + }); }; module.exports = { @@ -95,7 +99,8 @@ module.exports = { const wordAssociationEmbed = createWordAssociationEmbed( word, - associatedWords + associatedWords, + interaction.guild ); await interaction.reply({ embeds: [wordAssociationEmbed] });