From cb378dd0428173b7e98e7cc58f3d8d3a7c6b394c Mon Sep 17 00:00:00 2001 From: Oupson Date: Tue, 25 Aug 2020 23:37:30 +0200 Subject: [PATCH] leave_guild instead of leave --- src/commands/owner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/owner.rs b/src/commands/owner.rs index 35b3d00..0a80087 100644 --- a/src/commands/owner.rs +++ b/src/commands/owner.rs @@ -10,12 +10,12 @@ use serenity::{ use std::convert::TryFrom; #[group] -#[commands(leave, send_message)] +#[commands(leave_guild, send_message)] pub(crate) struct Owner; #[command] #[owners_only] -pub async fn leave(ctx: &Context, _msg: &Message, mut args: Args) -> CommandResult { +pub async fn leave_guild(ctx: &Context, _msg: &Message, mut args: Args) -> CommandResult { let guild = GuildId::try_from(args.single::()?)?; guild.leave(&ctx.http).await?; Ok(())