In this video, we work on adding a role with a button in discord.py v2.0.
More info & documentation below!
If you have any questions or comments, feel free to comment below or join our Discord server - discord.gg/MM6eFU3HrUn.
Make Slash Commands in Discord.py: • (Updated!) How to Make Slash Commands...
More Discord.py Videos: • discord.py
View Documentation: https://discordpy.readthedocs.io/en/l...
Button Documentation: https://discordpy.readthedocs.io/en/l...
add_view Documentation: https://discordpy.readthedocs.io/en/l...
utils.find Documentation: https://discordpy.readthedocs.io/en/l...
Code used in this video: https://github.com/Digiwind/Digiwind-...
Discord Server: / discord
Twitter (@Digiwind_YT): / digiwind_yt
Top.gg: https://top.gg/user/512025208542986241
GitHub (Digiwind): https://github.com/Digiwind
Official Discord.py Server: discord.gg/dpy
Chapters:
0:00-0:09 Intro
0:09-0:18 Slash Commands Framework
0:18-0:42 Creating the View
0:42-01:07 Button Documentation
01:07-01:15 Creating the Button
01:15-01:24 Callback
01:24-01:45 Role Client Variable
01:45-02:52 Button Callback
02:52-03:02 Sending the Button via Slash Command
03:02-03:27 Adding the View (to make it persistent)
03:27-03:46 Testing the Code
03:46-03:55 Outro
#discordpy #dpy #digiwind #discord #python