Check if you are trying to kick owner #38

Merged
radical merged 6 commits from wip/kick into main 2025-07-23 12:59:35 +00:00
Showing only changes of commit ac5ca90974 - Show all commits

View file

@ -188,7 +188,7 @@ impl Member {
}
pub async fn delete(self, conn: &mut Conn) -> Result<(), Error> {
if member.is_owner {
if self.is_owner {
return Err(Error::Forbidden("Can not kick owner".to_string()))
}
delete(guild_members::table)