#SlashCommandBuilder

1 messages · Page 1 of 1 (latest)

willow helm
#

I mean
You can do that with an autocomplete parameter

slate kite
#
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

slate kite
willow helm
#

Not sure how to implement it if you use slash command builders

slate kite
#

huh

willow helm
#

There should be an event for it
In socket client

slate kite
#

i cant use Interaction Framework

willow helm
#

Why lol

slate kite
#

its dont work for me

willow helm
#

Then you did something wrong

#

This sample works out-of-the-box

slate kite
#

yes

#
_configuration = new ConfigurationBuilder()
                .AddEnvironmentVariables(prefix: "DC_")
                .AddJsonFile("appsettings.json", optional: true)
                .Build();
#

for me its not working

willow helm
#

I mean
It's just a way of adding confings
You can just remove this & do it your way

#

Uhmmmm

slate kite
#

the same token but not working

#

Missing Access

willow helm
#

Did you put correct guild id in InteractioHandler.ReadyAsync?

slate kite
#

ohh

#

didnt check that