mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(bot): let you blacklist any channel you can proxy in
This commit is contained in:
parent
f37a6f4290
commit
d1dd4477d1
2 changed files with 5 additions and 24 deletions
|
|
@ -204,7 +204,8 @@ public class ServerConfig
|
|||
var affectedChannels = new List<Channel>();
|
||||
if (ctx.Match("all"))
|
||||
affectedChannels = (await _cache.GetGuildChannels(ctx.Guild.Id))
|
||||
.Where(x => x.Type == Channel.ChannelType.GuildText).ToList();
|
||||
// All the channel types you can proxy in
|
||||
.Where(x => DiscordUtils.IsValidGuildChannel(x)).ToList();
|
||||
else if (!ctx.HasNext()) throw new PKSyntaxError("You must pass one or more #channels.");
|
||||
else
|
||||
while (ctx.HasNext())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue