.antispam will ignore thread channels when adding overwrites

This commit is contained in:
Toastie 2025-03-19 20:17:06 +13:00
parent eb808d00e5
commit 5b9cd88848
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7

View file

@ -269,6 +269,9 @@ public class MuteService : IEService, IReadyExecutor
foreach (var toOverwrite in await guild.GetTextChannelsAsync())
{
if (toOverwrite is IThreadChannel)
continue;
try
{
if (!toOverwrite.PermissionOverwrites.Any(x => x.TargetId == muteRole.Id