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());
            }
        }
Exemple #2
0
 public CustomUserPermission(ChannelPermission permission) : base(permission)
 {
     ErrorMessage = $"You don't have the {permission.ToString()} permission. Getting ahead of yourself, huh?";
 }
Exemple #3
0
 public CustomBotPermission(ChannelPermission permission) : base(permission)
 {
     ErrorMessage = $"I need the {permission.ToString()} permission. Life is unfair.";
 }