fix: ignore contentless and attachmentless messages

This commit is contained in:
Oliver Booth 2023-08-27 00:22:39 +01:00
parent 9edd4b81ce
commit 47d5323597
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 7 additions and 0 deletions

View File

@ -178,6 +178,13 @@ internal sealed partial class DiscordMessageService : BackgroundService, IDiscor
return false;
}
if (string.IsNullOrWhiteSpace(message.Content) && message.Attachments.Count == 0)
{
author = null;
message = null;
return false;
}
return true;
}
}