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()); }
public async Task PingCommand() { _ = PingAsync(IIodemCommandContext.GetContext(Context)); await Task.CompletedTask; }