Fix for empty messages
This commit is contained in:
parent
25d691c4e9
commit
65794edf2c
|
@ -38,6 +38,9 @@ namespace DeukBot4.MessageHandlers.CommandHandler
|
||||||
|
|
||||||
public static async Task HandleMessage(SocketMessage message)
|
public static async Task HandleMessage(SocketMessage message)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(message.Content))
|
||||||
|
return;
|
||||||
|
|
||||||
if (message.Content[0] != CommandTrigger) return;
|
if (message.Content[0] != CommandTrigger) return;
|
||||||
var req = await CommandRequest.Create(message);
|
var req = await CommandRequest.Create(message);
|
||||||
var resultCode = req.Item2;
|
var resultCode = req.Item2;
|
||||||
|
|
Loading…
Reference in New Issue