Skip to content

Commit

Permalink
last testing 5
Browse files Browse the repository at this point in the history
  • Loading branch information
iernie committed Nov 22, 2023
1 parent 074aa84 commit 0cfd27d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion events/reaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ const event: BotEvent<MessageReaction> = {

const users = await reaction.users.fetch();

console.log(reaction.client.user.id, reaction.message.author?.id, users, reaction.message.interaction?.user.id);
console.log(
reaction.client.user.id,
reaction.message.author?.id,
users.find((u) => u.id === reaction.message.interaction?.user.id),
reaction.message.interaction?.user.id,
);
if (reaction.emoji.name === "❌" && reaction.client.user.id === reaction.message.author?.id) {
await reaction.message.delete();
}
Expand Down

0 comments on commit 0cfd27d

Please sign in to comment.