We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe your feature request in as much detail as you can here.
https://discord.com/developers/docs/interactions/slash-commands
The python example is
url = "https://discord.com/api/v8/applications/<my_application_id>/commands" json = { "name": "blep", "description": "Send a random adorable animal photo", "options": [ { "name": "animal", "description": "The type of animal", "type": 3, "required": True, "choices": [ { "name": "Dog", "value": "animal_dog" }, { "name": "Cat", "value": "animal_dog" }, { "name": "Penguin", "value": "animal_penguin" } ] }, { "name": "only_smol", "description": "Whether to show only baby animals", "type": 5, "required": False } ] } # For authorization, you can use either your bot token headers = { "Authorization": "Bot 123456" } # or a client credentials token for your app with the applications.commmands.update scope headers = { "Authorization": "Bearer abcdefg" } r = requests.post(url, headers=headers, json=json)
The text was updated successfully, but these errors were encountered:
Anyone waiting for this feature can view our project for it to see the progress. I hope to get this finished by Jan 2021.
Sorry, something went wrong.
swarley
Successfully merging a pull request may close this issue.
Describe your feature request in as much detail as you can here.
https://discord.com/developers/docs/interactions/slash-commands
The python example is
The text was updated successfully, but these errors were encountered: