fix: self not member
This commit is contained in:
parent
e074ca89f9
commit
ac5ca90974
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue