private static string GetPermissionDisplayName(ChannelPermission permission) { switch (permission) { case ChannelPermission.DeafenMembers: return("Deafen Members"); case ChannelPermission.MoveMembers: return("Move Members"); case ChannelPermission.MuteMembers: return("Mute Members"); default: return(permission.ToString()); } }
public CustomUserPermission(ChannelPermission permission) : base(permission) { ErrorMessage = $"You don't have the {permission.ToString()} permission. Getting ahead of yourself, huh?"; }
public CustomBotPermission(ChannelPermission permission) : base(permission) { ErrorMessage = $"I need the {permission.ToString()} permission. Life is unfair."; }