hide admin commands from suggestions etc.

This commit is contained in:
dusk 2025-10-11 05:17:13 +00:00
parent 7dd2a4e7e1
commit 42c9429953
No known key found for this signature in database
3 changed files with 10 additions and 0 deletions

View file

@ -6,6 +6,12 @@ public partial class CommandTree
{
private async Task PrintCommandList(Context ctx, string subject, string commands)
{
if (commands.Length == 0)
{
await ctx.Reply($"No commands related to {subject} was found. For the full list of commands, see the website: <https://pluralkit.me/commands>");
return;
}
await ctx.Reply(
components: [
new MessageComponent()