Skip to content

Commit

Permalink
Fix reacting with custom emojis from same guild requiring USE_EXTERNA…
Browse files Browse the repository at this point in the history
…L_EMOJIS
  • Loading branch information
TheArcaneBrony committed Dec 8, 2023
1 parent c4701a3 commit 583d9ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ router.put(
const external_emoji = await Emoji.findOneOrFail({
where: { id: emoji.id },
});
if (!already_added) req.permission?.hasThrow("USE_EXTERNAL_EMOJIS");
if (!already_added && channel.guild_id != external_emoji.guild_id)
req.permission?.hasThrow("USE_EXTERNAL_EMOJIS");
emoji.animated = external_emoji.animated;
emoji.name = external_emoji.name;
}
Expand Down

0 comments on commit 583d9ff

Please sign in to comment.