Fail if a user tries to execute a non-existing command, instead of letting them know that the command doesn't exist

This commit is contained in:
Daan Boerlage 2021-11-05 17:46:08 +01:00
parent e74aeb1403
commit c15a66255f
Signed by: daan
GPG key ID: FCE070E1E4956606

View file

@ -50,14 +50,7 @@ namespace Geekbot.Core.Interactions
if (command == null) if (command == null)
{ {
return new InteractionResponse() return null;
{
Type = InteractionResponseType.ChannelMessageWithSource,
Data = new InteractionResponseData()
{
Content = "Command not found..."
}
};
} }
var guildSettings = _guildSettingsManager.GetSettings(ulong.Parse(interaction.GuildId)); var guildSettings = _guildSettingsManager.GetSettings(ulong.Parse(interaction.GuildId));