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:
parent
e74aeb1403
commit
c15a66255f
1 changed files with 1 additions and 8 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue