From d7375df648d930b674bb4b49c6fc33fe6bf827fb Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 5 Dec 2023 09:25:45 -0500 Subject: fix: permission checks for prefix commands ihateprefixcommands ihateprefixcommands ihateprefixcommands ihateprefixcommands ihateprefixcommands ihateprefixcommands ihateprefixcommands ihateprefixcommands --- src/commands/moderation/actions.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/commands/moderation/actions.rs') diff --git a/src/commands/moderation/actions.rs b/src/commands/moderation/actions.rs index 4d4d0f8..beda3da 100644 --- a/src/commands/moderation/actions.rs +++ b/src/commands/moderation/actions.rs @@ -28,6 +28,7 @@ fn create_moderation_embed( #[poise::command( slash_command, prefix_command, + required_permissions = "BAN_MEMBERS", default_member_permissions = "BAN_MEMBERS" )] pub async fn ban_user( @@ -61,6 +62,7 @@ pub async fn ban_user( #[poise::command( slash_command, prefix_command, + required_permissions = "KICK_MEMBERS", default_member_permissions = "KICK_MEMBERS" )] pub async fn kick_user(ctx: Context<'_>, user: User, reason: Option) -> Result<()> { -- cgit v1.2.3