Handling argument autocomplete per command

DDolliwyx12/23/2022
Would it be possible to handle autocompletes through the Command class itself instead and it will be handled accordingly by the interactionCreate event?
Solution
SSawako12/23/2022
Sapphire Framework
Autocomplete | Sapphire
Certain Chat Input Command options can be autocompleted based on what the user has written. There are two ways you can
AAlex12/23/2022
Sapphire Framework
Autocomplete | Sapphire
Certain Chat Input Command options can be autocompleted based on what the user has written. There are two ways you can
DDolliwyx12/23/2022
Got it thanks!! Follow-up question: what would be the best one to use for subcommands for autocomplete?
SSawako12/23/2022
in the same way Just check that the interaction comes from that subcommand name
DDolliwyx12/24/2022
I see, got it thank you!!

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Weird error when installing ts-configimage includes the errorDo Partials Create Un-Typesafe Code?If I am listening for say a message update event with partials of messages and I receive a partial mAPI error event handlerHi, when I get a DiscordAPIError through the logger that starts like this: ``` Encountered error whiLocalizations for slash commands working partiallyI'm trying to utilize i18next-plugin for registering slash commands using Discord's localization, bui18next plugin without namespacesHello, how would I get rid of the namespaces, and have it like this? I get invalid language providedUnknownMessageCommandName event is not workingSo i was making the event but when i run >pinewfweew for example or any other wrong command nothing can i edit the frame work to apply custom commands or not.So i want to edit the frame work to make it able to handle custom commands i am using mongo db for ti got a bunch of typescript errorslook at the pictureEmbed PaginatorMay i ask something about embed paginator? it works when i doesnt send my message as ephemeral but wGetting ChannelType from APIInteractionDataResovledChannelI'm currently trying to work with chat input commands. And when I create an channel option and use `idk what to title this.. trouble shooting? im new to all of this hahaTrying to make a /role command with options that on different slected options it either adds or remointeractionHandler parse showing TS '...cannot be named without reference to...' errorWhen attempting to make a very basic interaction handler I'm getting the pictured compiler error. ThCan i create an Auto Changing Status For My Bot?Can anyone help me out?Read property from custom Command OptionsHey folks, I have a custom command options object, that contains a property called `shortDesc`. I TypeError Class constructor _SapphireClient cannot be invoked without 'new'This is happening when I extend SapphireClient. Using Typescript.Is there a recommended way to split subcommands across multiple files?Perhaps another way of phrasing this question is: Can I have arbitrary typescript files in the commaDoes sapphire support all the up to date Discord Auto moderation stuff?TitleHow do subcommands work with idHints and guildIds?How do subcommands work with idHints and guildIds?Is there a way to prevent fetching information both in the precondition and the command itself?I need to fetch the same data to resolve a precondition, as I'll need later in the command. Is thereListeners with same file nameIs it possible to have 2 listeners with the same file name being from 2 separate emitters?