Is it possible to update slash command string options every time the command is ran?

This command acquires data from Firebase and use it as string choices. However, data from Firebase is not constant and will change from the moment the slash command is registered.
Solution:
1. No, commands are registered at the Discord API level. No this is not a Sapphire or DiscordJS limitation, it just just how the Discord API handles slash commands. 2. Instead of pre-defining options you should use auto completion which can be filled dynamically, for example try using /pokedex from @Dragonite which also queries an API for its options....
Jump to solution
3 Replies
Mercenary Ike
Mercenary Ike16mo ago
Dependencies.
Solution
Favna
Favna16mo ago
1. No, commands are registered at the Discord API level. No this is not a Sapphire or DiscordJS limitation, it just just how the Discord API handles slash commands. 2. Instead of pre-defining options you should use auto completion which can be filled dynamically, for example try using /pokedex from @Dragonite which also queries an API for its options.
Dragonite
Dragonite16mo ago
#493 - Arceus
Type(s)
Normal
Abilities
Multitype
Gender Ratio
Genderless
Evolutionary line
Arceus (No Evolutions)
Base Stats
HP: 120, ATK: 120, DEF: 120, SPA: 120, SPD: 120, SPE: 120 (BST: 720)
External Resources
1 / 5