stability! thx bloodskilled
This commit is contained in:
parent
39e53cbbf8
commit
4938b1b5fe
@ -113,6 +113,14 @@ namespace NadekoBot {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
client.ClientAPI.SendingRequest += (s, e) =>
|
||||||
|
{
|
||||||
|
var request = e.Request as Discord.API.Client.Rest.SendMessageRequest;
|
||||||
|
if (request != null) {
|
||||||
|
if (string.IsNullOrWhiteSpace(request.Content))
|
||||||
|
e.Cancel = true;
|
||||||
|
}
|
||||||
|
};
|
||||||
});
|
});
|
||||||
Console.WriteLine("Exiting...");
|
Console.WriteLine("Exiting...");
|
||||||
Console.ReadKey();
|
Console.ReadKey();
|
||||||
|
Loading…
Reference in New Issue
Block a user