#Slash command parametres localize

1 messages · Page 1 of 1 (latest)

scenic quarryBOT
#
interactions/localizations.py

An example on how to set up localized application commands.

orchid torrent
#

You create the json file with the translations and proper keys. You load the file BEFORE any @bot.whatever_command and and BEFORE any cog loading.
Then your docstrings should have the keys so disnke can tell discord how to translate.

#

I don't know how the example could be any clearer.

#

Though, it should be updated, tbh. Use docstrings rather than OptionChoice