Slash commands choices with emoji
Please allow choices to have `:emoji_name: in them and format them properly.
When manually forcing emoji's this makes the command unusable, because when the user chooses an choice with an emoji in it, (unformatted) and then selects it... The emoji is replaced in the selection, and now the choice and selected choice no longer match, and the command cannot be invoked.
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": ":1: Dog", "value": "animal_dog" }, { "name": ":2: Cat", "value": "animal_cat" }, { "name": ":3: Penguin", "value": "animal_penguin" } ] }, { "name": "only_smol", "description": "Whether to show only baby animals", "type": 5, "required": False } ] }
3
-
I look it good
-2
Please sign in to leave a comment.
Comments
1 comment