mirror of
https://gitlab.com/Deukhoofd/DeukBot4.git
synced 2025-09-05 00:47:20 +00:00
Ignore all messages by the bot
This commit is contained in:
parent
65794edf2c
commit
fea2b05e03
@ -8,6 +8,10 @@ namespace DeukBot4.MessageHandlers
|
|||||||
{
|
{
|
||||||
public static async Task HandleMessage(SocketMessage message)
|
public static async Task HandleMessage(SocketMessage message)
|
||||||
{
|
{
|
||||||
|
if (message.Author.Id == Program.Client.CurrentUser.Id)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await CommandHandler.CommandHandler.HandleMessage(message);
|
await CommandHandler.CommandHandler.HandleMessage(message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user