fixed .sfl and related commands' toggles
This commit is contained in:
parent
7b4d4b1f8c
commit
77628be826
1 changed files with 5 additions and 2 deletions
|
@ -255,8 +255,8 @@ public sealed class FilterService : IExecOnMessage, IReadyExecutor
|
||||||
{
|
{
|
||||||
FilterInvitesChannels = conf?.FilterInvitesChannelIds.Select(x => x.ChannelId).ToArray() ?? [],
|
FilterInvitesChannels = conf?.FilterInvitesChannelIds.Select(x => x.ChannelId).ToArray() ?? [],
|
||||||
FilterLinksChannels = conf?.FilterLinksChannelIds.Select(x => x.ChannelId).ToArray() ?? [],
|
FilterLinksChannels = conf?.FilterLinksChannelIds.Select(x => x.ChannelId).ToArray() ?? [],
|
||||||
FilterInvitesEnabled = false,
|
FilterInvitesEnabled = conf?.FilterInvites ?? InviteFilteringServers.Contains(guildId),
|
||||||
FilterLinksEnabled = false,
|
FilterLinksEnabled = conf?.FilterLinks ?? InviteFilteringServers.Contains(guildId),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,6 +271,7 @@ public sealed class FilterService : IExecOnMessage, IReadyExecutor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
LinkFilteringServers.TryRemove(guildId);
|
||||||
fc.FilterLinks = false;
|
fc.FilterLinks = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,6 +314,7 @@ public sealed class FilterService : IExecOnMessage, IReadyExecutor
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
InviteFilteringServers.TryRemove(guildId);
|
||||||
fc.FilterInvites = false;
|
fc.FilterInvites = false;
|
||||||
await uow.SaveChangesAsync();
|
await uow.SaveChangesAsync();
|
||||||
return false;
|
return false;
|
||||||
|
@ -352,6 +354,7 @@ public sealed class FilterService : IExecOnMessage, IReadyExecutor
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WordFilteringServers.TryRemove(guildId);
|
||||||
fc.FilterWords = false;
|
fc.FilterWords = false;
|
||||||
await uow.SaveChangesAsync();
|
await uow.SaveChangesAsync();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue