mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
Merge branch 'vnext'
This commit is contained in:
@@ -24,7 +24,7 @@ internal static class ContentFilterMonitor
|
||||
if (message?.Author is null)
|
||||
message = await e.Channel.GetMessageAsync(e.Message.Id).ConfigureAwait(false);
|
||||
}
|
||||
if (message.Attachments.Any())
|
||||
if (message.Attachments.Any() || message.Embeds.Any())
|
||||
MediaScreenshotMonitor.EnqueueOcrTask(message);
|
||||
await ContentFilter.IsClean(c, message).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ internal sealed class MediaScreenshotMonitor
|
||||
|
||||
public static void EnqueueOcrTask(DiscordMessage message)
|
||||
{
|
||||
if (!message.Attachments.Any())
|
||||
if (!message.Attachments.Any() && !message.Embeds.Any())
|
||||
return;
|
||||
|
||||
var images = Vision.GetImageAttachments(message)
|
||||
|
||||
Reference in New Issue
Block a user