mirror of https://github.com/oliverbooth/VPLink
fix: ignore contentless and attachmentless messages
This commit is contained in:
parent
9edd4b81ce
commit
47d5323597
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue