Ignore deleted channels when printing blacklist
This commit is contained in:
parent
8477cfaf0e
commit
3996cd48c7
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user