.antispam will ignore thread channels when adding overwrites
This commit is contained in:
parent
eb808d00e5
commit
5b9cd88848
1 changed files with 3 additions and 0 deletions
|
@ -269,6 +269,9 @@ public class MuteService : IEService, IReadyExecutor
|
||||||
|
|
||||||
foreach (var toOverwrite in await guild.GetTextChannelsAsync())
|
foreach (var toOverwrite in await guild.GetTextChannelsAsync())
|
||||||
{
|
{
|
||||||
|
if (toOverwrite is IThreadChannel)
|
||||||
|
continue;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!toOverwrite.PermissionOverwrites.Any(x => x.TargetId == muteRole.Id
|
if (!toOverwrite.PermissionOverwrites.Any(x => x.TargetId == muteRole.Id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue