From c15a66255f5e40f56278c876b1d8d4b152fc86ca Mon Sep 17 00:00:00 2001 From: Daan Boerlage Date: Fri, 5 Nov 2021 17:46:08 +0100 Subject: [PATCH] Fail if a user tries to execute a non-existing command, instead of letting them know that the command doesn't exist --- src/Core/Interactions/InteractionCommandManager.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Core/Interactions/InteractionCommandManager.cs b/src/Core/Interactions/InteractionCommandManager.cs index fd21c5f..dee25b5 100644 --- a/src/Core/Interactions/InteractionCommandManager.cs +++ b/src/Core/Interactions/InteractionCommandManager.cs @@ -50,14 +50,7 @@ namespace Geekbot.Core.Interactions if (command == null) { - return new InteractionResponse() - { - Type = InteractionResponseType.ChannelMessageWithSource, - Data = new InteractionResponseData() - { - Content = "Command not found..." - } - }; + return null; } var guildSettings = _guildSettingsManager.GetSettings(ulong.Parse(interaction.GuildId));