From 84af829e91593b7672ce25791b478354b295e34b Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 11 Feb 2022 19:14:56 +0100 Subject: Fix: doesn't show custom emojis where they can't show (fixes #2) --- handler/button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'handler/button.js') diff --git a/handler/button.js b/handler/button.js index 3fbebbe..f9f283e 100644 --- a/handler/button.js +++ b/handler/button.js @@ -63,7 +63,7 @@ module.exports = async (interaction) => { await interaction.reply({ ephemeral: interaction.guild !== null, embeds: [ - getEmbed(keys[1], interaction.user.id, interaction.guild ? interaction.guild.id : 0, false, interaction.user) + getEmbed(keys[1], interaction.user.id, interaction.guild ? interaction.guild.id : 0, false, interaction.user, interaction.member, interaction.guild) ], components: [ row @@ -85,7 +85,7 @@ module.exports = async (interaction) => { await interaction.channel.send({ ephemeral: false, embeds: [ - getEmbed(keys[1], interaction.user.id, interaction.guild ? interaction.guild.id : 0, true, interaction.user) + getEmbed(keys[1], interaction.user.id, interaction.guild ? interaction.guild.id : 0, true, interaction.user, interaction.member, interaction.guild) ], components: [ new MessageActionRow() -- cgit