Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: Call the correct function to kick member
Browse files Browse the repository at this point in the history
  • Loading branch information
Ushie committed Dec 5, 2023
1 parent 6880425 commit 40b6cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/moderation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ pub async fn kick_moderation(ctx: &Context<'_>) -> Option<SerenityError> {

let reason = reason.as_deref().or(Some("None specified"));

let kick_result = http.kick_user(guild_id, user.id, reason).await;
let kick_result = http.kick_member(guild_id, user.id, reason).await;

if let Err(err) = kick_result {
error!("Failed to kick user {}: {}", user.id, err);
Expand Down

0 comments on commit 40b6cd8

Please sign in to comment.