diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts index 5efa0f14..c2222b0a 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts @@ -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; } |