From 3996cd48c753545632a07513e68882b49174575d Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 28 Aug 2020 23:37:27 +0200 Subject: [PATCH] Ignore deleted channels when printing blacklist --- PluralKit.Bot/Commands/ServerConfig.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PluralKit.Bot/Commands/ServerConfig.cs b/PluralKit.Bot/Commands/ServerConfig.cs index d6fa8fcb..1102448f 100644 --- a/PluralKit.Bot/Commands/ServerConfig.cs +++ b/PluralKit.Bot/Commands/ServerConfig.cs @@ -85,6 +85,7 @@ namespace PluralKit.Bot // Resolve all channels from the cache and order by position var channels = blacklist.Blacklist .Select(id => ctx.Guild.GetChannel(id)) + .Where(c => c != null) .OrderBy(c => c.Position) .ToList();