feat: allow bots to manage emojis (#407)

* Remove bot check on emoji create

Signed-off-by: Builderb <builderbgamer@gmail.com>

* Remove bot check on emoji delete

Signed-off-by: Builderb <builderbgamer@gmail.com>

---------

Signed-off-by: Builderb <builderbgamer@gmail.com>
This commit is contained in:
Builderb
2025-04-02 12:05:04 +01:00
committed by GitHub
parent e3e1cab02e
commit 8d88ea9963
2 changed files with 0 additions and 9 deletions

View File

@@ -27,11 +27,6 @@ pub async fn create_emoji(
})
})?;
// Bots cannot manage emojis
if user.bot.is_some() {
return Err(create_error!(IsBot));
}
// Validate we have permission to write into parent
match &data.parent {
v0::EmojiParent::Server { id } => {