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 Zomatree
parent 773b890012
commit 62204fe50b
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 } => {

View File

@@ -18,10 +18,6 @@ pub async fn delete_emoji(
user: User,
emoji_id: Reference,
) -> Result<EmptyResponse> {
// Bots cannot manage emoji
if user.bot.is_some() {
return Err(create_error!(IsBot));
}
// Fetch the emoji
let emoji = emoji_id.as_emoji(db).await?;