示例#1
0
 public async Task PlayerList(CommandContext ctx)
 {
     try
     {
         await RespondToCommand(ctx, "Displaying Online Players", MessageBuilder.GetPlayerList());
     }
     catch (Exception e)
     {
         LogCommandException(e);
     }
 }
 public async Task PlayerList(CommandContext ctx)
 {
     try
     {
         DiscordEmbedBuilder embed = new DiscordEmbedBuilder()
                                     .WithColor(MessageBuilder.EmbedColor)
                                     .WithTitle("Players")
                                     .WithDescription(MessageBuilder.GetPlayerList());
         await RespondToCommand(ctx, "Displaying Online Players", embed);
     }
     catch (Exception e)
     {
         LogCommandException(e);
     }
 }