1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

Fix reacting with custom emojis from same guild requiring USE_EXTERNAL_EMOJIS

This commit is contained in:
Rory& 2023-12-08 19:48:04 +00:00
parent c4701a3299
commit 583d9ff407

View File

@ -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;
}