Flux-Systems-Assistant/Flux_System_Assistant/CommandModules/FinanceCommands.cs

21 lines
595 B
C#
Raw Normal View History

2023-05-04 13:46:14 +02:00
using Discord;
using Discord.Interactions;
using Discord.WebSocket;
namespace Flux_System_Assistant.CommandModules;
public class FinanceCommands : InteractionModuleBase<SocketInteractionContext>
{
[SlashCommand("hello2","writes hello world")]
public async Task SayHelloAsync()
{
var builder = new EmbedBuilder()
.WithAuthor(Context.User)
.WithTitle("Test");
var builder2 = new ComponentBuilder()
.WithButton("Test", "ceta-3");
await RespondAsync(embed: builder.Build(), components: builder2.Build());
}
}