#SlashCommandBuilder
1 messages · Page 1 of 1 (latest)
rules.AddOption(new SlashCommandOptionBuilder()
.WithName("category")
.WithDescription("Rules Category")
.AddChoice("┇ Common Rules", "1")
.AddChoice("┇ Administrator", "2")
.AddChoice("┇ Voice Rules", "3")
.AddChoice("┇ Text Rules", "4")
.AddChoice("┇ DM Rules", "5")
and by choising category will be rules
wdym autocomplete parameter
Not sure how to implement it if you use slash command builders
huh
There should be an event for it
In socket client
i cant use Interaction Framework
Why lol
its dont work for me
Then you did something wrong
GitHub
An unofficial .Net wrapper for the Discord API (https://discord.com/) - Discord.Net/samples/InteractionFramework at dev · discord-net/Discord.Net
This sample works out-of-the-box
yes
_configuration = new ConfigurationBuilder()
.AddEnvironmentVariables(prefix: "DC_")
.AddJsonFile("appsettings.json", optional: true)
.Build();
for me its not working
I mean
It's just a way of adding confings
You can just remove this & do it your way
Uhmmmm
Did you put correct guild id in InteractioHandler.ReadyAsync?