Fixed permission listing when user(s) in permissions left the server

This commit is contained in:
Kwoth 2017-04-04 19:48:33 +02:00
parent d07ec11fa3
commit 349f76af85

View File

@ -106,7 +106,7 @@ namespace NadekoBot.Modules.Permissions
switch (perm.PrimaryTarget)
{
case PrimaryPermissionType.User:
com += guild?.GetUser(perm.PrimaryTargetId).ToString() ?? $"<@{perm.PrimaryTargetId}>";
com += guild?.GetUser(perm.PrimaryTargetId)?.ToString() ?? $"<@{perm.PrimaryTargetId}>";
break;
case PrimaryPermissionType.Channel:
com += $"<#{perm.PrimaryTargetId}>";