Beispiel #1
0
 public async Task PingAsync(IIodemCommandContext context)
 {
     var cb = new ComponentBuilder();
     cb.WithButton("Ping", "my_id");
     await context.ReplyAsync(embed: new EmbedBuilder()
         .WithColor(Colors.Get("Iodem"))
         .WithDescription($"Pong! {Global.Client.Latency} ms")
         .Build(), component: cb.Build());
 }
Beispiel #2
0
 public async Task PingCommand()
 {
     _ = PingAsync(IIodemCommandContext.GetContext(Context));
     await Task.CompletedTask;
 }