How do I use Discord.ui #8238
-
I heard discord.py has button, dropdown, and slash command support. Is there any documentation for this as I can't find it anywhere. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You heard correct! Discord.py has support for buttons, dropdowns, and application commands! All these features are on the master branch of the library, they aren't on the stable version of discord.py. How do I install the master branch?Windows
Linux/Mac
How do I create a button or dropdown?Check out the examples on how Views work for some more info on that. How do I create a slash command?Check out this example on slash commands. In addition to this, feel free to check out this gist which describes application commands in more detail. Documentation?Documentation for the master branch can be found here, and support for migration can be found here. It will be very beneficial if you joined the discord.py Discord server as you can get on demand help for the library! |
Beta Was this translation helpful? Give feedback.
You heard correct! Discord.py has support for buttons, dropdowns, and application commands! All these features are on the master branch of the library, they aren't on the stable version of discord.py.
How do I install the master branch?
Windows
py -m pip install -U git+https://github.com/Rapptz/discord.py
py -m pip install -U git+https://github.com/Rapptz/discord.py#egg=discord.py[voice]
Linux/Mac
python3 -m pip install -U git+https://github.com/Rapptz/discord.py
python3 -m pip install -U git+https://github.com/Rapptz/discord.py#egg=discord.py[voice]
How do I create a button or dropdown?
Check out the ex…