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

MIMercenary Ike2/15/2023
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
MIMercenary Ike2/15/2023
Dependencies.
Solution
FFavna2/15/2023
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.
DDragonite2/15/2023
#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

Looking for more? Join the community!