Skip to content

Commit

Permalink
Refactor interaction object properties
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed Mar 29, 2024
1 parent cdbdb0d commit 736cf2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/bot/events/interactionCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ module.exports = async interaction => {
const member = await guild.members.fetch(interaction.user.id).catch(() => null);
if (!member) return interaction.reply({ content: 'You are no longer in this server.' });

interaction.guild = guild;
interaction.member = member;
Object.defineProperty(interaction, 'guild', { value: guild });
Object.defineProperty(interaction, 'member', { value: member });

require('@/src/bot/commands/vote').execute(interaction);
}
Expand Down

0 comments on commit 736cf2f

Please sign in to comment.