mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-22 08:45:55 +00:00
wordassoc: move to general folder as its not a game
This commit is contained in:
parent
7376649895
commit
5a7fa169d7
1 changed files with 8 additions and 3 deletions
|
@ -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] });
|
Loading…
Reference in a new issue