From d8d92ea56ef01272fc01faeb9b4f2f513e73f488 Mon Sep 17 00:00:00 2001 From: Wizzy69 Date: Fri, 8 Apr 2022 18:49:51 +0300 Subject: [PATCH] Patch --- DiscordBot/Discord/Commands/Help.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/DiscordBot/Discord/Commands/Help.cs b/DiscordBot/Discord/Commands/Help.cs index 429342d..09cfc06 100644 --- a/DiscordBot/Discord/Commands/Help.cs +++ b/DiscordBot/Discord/Commands/Help.cs @@ -32,21 +32,15 @@ namespace PluginManager.Commands foreach (var item in args) { - bool commandExists = false; var e = GenerateHelpCommand(item); if (e != null) - { - commandExists = true; context.Channel.SendMessageAsync(embed: e.Build()); - } - if (!commandExists) + else context.Channel.SendMessageAsync("Unknown Command " + item); } return; } - - bool isAdmin = ((SocketGuildUser)message.Author).isAdmin(); - Discord.EmbedBuilder embedBuilder = new Discord.EmbedBuilder(); + EmbedBuilder embedBuilder = new EmbedBuilder(); string adminCommands = ""; string normalCommands = "";