mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Ignore deleted channels when printing blacklist
This commit is contained in:
parent
8477cfaf0e
commit
3996cd48c7
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue