Fixed permission listing when user(s) in permissions left the server
This commit is contained in:
parent
d07ec11fa3
commit
349f76af85
@ -106,7 +106,7 @@ namespace NadekoBot.Modules.Permissions
|
|||||||
switch (perm.PrimaryTarget)
|
switch (perm.PrimaryTarget)
|
||||||
{
|
{
|
||||||
case PrimaryPermissionType.User:
|
case PrimaryPermissionType.User:
|
||||||
com += guild?.GetUser(perm.PrimaryTargetId).ToString() ?? $"<@{perm.PrimaryTargetId}>";
|
com += guild?.GetUser(perm.PrimaryTargetId)?.ToString() ?? $"<@{perm.PrimaryTargetId}>";
|
||||||
break;
|
break;
|
||||||
case PrimaryPermissionType.Channel:
|
case PrimaryPermissionType.Channel:
|
||||||
com += $"<#{perm.PrimaryTargetId}>";
|
com += $"<#{perm.PrimaryTargetId}>";
|
||||||
|
Loading…
Reference in New Issue
Block a user