Ejemplo n.º 1
0
 public async Task RemoveBotManagedRoleAsync(string roleStringInput, [Remainder] string roleName)
 {
     //Parse roleId from mention
     try
     {
         ulong roleID = MentionUtils.ParseRole(roleStringInput);
         GuildRolesManager.RemoveGuildRole(Context.Guild.Id, roleName, roleID);
     }
     catch (Exception ex)
     {
         await Context.Channel.SendMessageAsync($"Error in finding role, role {roleStringInput + ex.Message} does not exist");
     }
 }