From fce69870b1f5c9f0eaa6f2378d1b10c4fb9552d2 Mon Sep 17 00:00:00 2001 From: Kappeh Date: Sat, 8 Feb 2025 08:02:49 +0000 Subject: [PATCH] Hide context menu commands in help --- cipher_discord_bot/src/commands/help.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cipher_discord_bot/src/commands/help.rs b/cipher_discord_bot/src/commands/help.rs index 1594b57..f7469ff 100644 --- a/cipher_discord_bot/src/commands/help.rs +++ b/cipher_discord_bot/src/commands/help.rs @@ -67,7 +67,7 @@ where { let mut commands_field_value = String::new(); for command in &ctx.framework().options.commands { - if !all && command.hide_in_help { + if !all && command.hide_in_help || command.slash_action.is_none() { continue; } @@ -130,7 +130,7 @@ where let mut subcommands_field_value = String::new(); for subcommand in &command.subcommands { - if !all && subcommand.hide_in_help { + if !all && subcommand.hide_in_help || command.slash_action.is_none() { continue; }