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

Commit

Permalink
COrrigindo algumas coisas
Browse files Browse the repository at this point in the history
  • Loading branch information
vulcandragi committed Sep 23, 2021
1 parent d93ca85 commit f694a3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/moderation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async fn ban(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
get_user_role_position(ctx, &guild, &ctx.cache.current_user().await.into()).await?;

if author_role > member_role && bot_role > member_role {
send_alert(&ctx, &msg, &user, "banido", &guild.name, &reason).await;
send_alert(ctx, msg, &user, "banido", &guild.name, reason).await;
match guild.ban_with_reason(ctx, &user, 7, reason).await {
Ok(_) => {
let mut embed = CreateEmbed::default();
Expand Down Expand Up @@ -180,7 +180,7 @@ async fn kick(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
get_user_role_position(ctx, &guild, &ctx.cache.current_user().await.into()).await?;

if author_role > member_role && bot_role > member_role {
send_alert(&ctx, &msg, &user, "expulso", &guild.name, &reason).await;
send_alert(ctx, msg, &user, "expulso", &guild.name, reason).await;
match guild.kick_with_reason(ctx, &user, reason).await {
Ok(_) => {
let mut embed = CreateEmbed::default();
Expand Down Expand Up @@ -232,7 +232,7 @@ async fn softban(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult
get_user_role_position(ctx, &guild, &ctx.cache.current_user().await.into()).await?;

if author_role > member_role && bot_role > member_role {
send_alert(&ctx, &msg, &user, "removido", &guild.name, &reason).await;
send_alert(ctx, msg, &user, "removido", &guild.name, reason).await;
match guild.ban_with_reason(ctx, &user, 7, reason).await {
Ok(_) => {
let mut embed = CreateEmbed::default();
Expand Down

0 comments on commit f694a3a

Please sign in to comment.