fix: Updated error message when banning owner
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
BAaboe 2025-07-23 01:00:17 +02:00
parent 8e31dc7aca
commit 6999b4120e

View file

@ -36,7 +36,7 @@ pub async fn post(
let member = Member::fetch_one_with_member(&app_state, None, member_uuid).await?;
if member.is_owner {
return Err(Error::Forbidden("Not allowed".to_string()));
return Err(Error::Forbidden("Can not ban owner".to_string()));
}
let baner = Member::check_membership(&mut conn, uuid, member.guild_uuid).await?;