From 174d93544c07b0092cb369142179b4baa369240e Mon Sep 17 00:00:00 2001 From: TheKodeToad Date: Tue, 5 Dec 2023 14:49:18 +0000 Subject: [PATCH] fix: do not --- src/commands/general/say.rs | 3 ++- src/commands/moderation/actions.rs | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/commands/general/say.rs b/src/commands/general/say.rs index 3f61fe4..27cd82f 100644 --- a/src/commands/general/say.rs +++ b/src/commands/general/say.rs @@ -7,7 +7,8 @@ use color_eyre::eyre::{eyre, Result}; slash_command, prefix_command, ephemeral, - default_member_permissions = "MODERATE_MEMBERS" + default_member_permissions = "MODERATE_MEMBERS", + required_permissions = "MODERATE_MEMBERS" )] pub async fn say(ctx: Context<'_>, #[description = "Just content?"] content: String) -> Result<()> { let guild = ctx.guild().ok_or_else(|| eyre!("Couldn't get guild!"))?; diff --git a/src/commands/moderation/actions.rs b/src/commands/moderation/actions.rs index e776b0e..89b9904 100644 --- a/src/commands/moderation/actions.rs +++ b/src/commands/moderation/actions.rs @@ -26,7 +26,8 @@ fn create_moderation_embed( #[poise::command( slash_command, prefix_command, - default_member_permissions = "BAN_MEMBERS" + default_member_permissions = "BAN_MEMBERS", + required_permissions = "BAN_MEMBERS" )] pub async fn ban_user( ctx: Context<'_>, @@ -54,7 +55,8 @@ pub async fn ban_user( #[poise::command( slash_command, prefix_command, - default_member_permissions = "KICK_MEMBERS" + default_member_permissions = "KICK_MEMBERS", + required_permissions = "KICK_MEMBERS" )] pub async fn kick_user(ctx: Context<'_>, user: User, reason: Option) -> Result<()> { let guild = ctx