wordassoc: move to general folder as its not a game

This commit is contained in:
Ayden Jahola 2024-09-24 12:50:24 +01:00
parent 7376649895
commit 5a7fa169d7
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742

View file

@ -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] });