Assigning Roles with Buttons - Python Discord Bot Tutorial

preview_player
Показать описание
How to add button components for role assignments to your Python Discord bot with Nextcord.

The buttons used in this video are persistent, meaning they do not timeout and will continue working even if the bot restarts.

👨‍💻 Source Code

💬 Dev Pro Tips Discussion & Support Server

📜 Nextcord Documentation

🗨 Nextcord Server

📓 Python Discord Bot Template

📺 In this video:
0:00​ - Introduction
0:35 - Nextcord examples
0:58 - Setting up Buttons
10:28 - Assigning roles
13:51 - Conclusion

In future videos in this series, I plan to show you how you can:
* Implement selects, and other Discord components
* Implement slash commands
* Welcome users
* Interact with other APIs to make useful bot features
* Much more

Make sure to subscribe so you don't miss anything!

🐍 More Discord Bot Tutorials

💻 More tutorials

🙋‍♂️ Find me on other channels

💖 SPONSORS 💖
Get your username or a link to your channel here by sponsoring on GitHub

🎁 GET FREE STUFF WHILE SUPPORTING MY TUTORIALS
Рекомендации по теме
Комментарии
Автор

👍 Thanks for watching! Don't forget to like and subscribe!

DevProTips
Автор

wish you made a fresh bot for this it was very hard to follow what to do cause you already had alot setup

vincentrps
Автор

I have an issue, after click on button it cause error "404 Not Found (error code: 10062): Unknown interaction"

просточел-кяс
Автор

I don't know why but my bot shows an error that the custom id is not defined in the cog file, are there any changes in the attributes of Buttons in nextcord?

JerryUnderTheWater
Автор

Is it possible to grey out the buttons after they've been clicked once?

LautrectheGuilty
Автор

Hello, I don't see it in the docs but can you add a custom emoji to the emoji attribute? the <name:id> does not work? Would be greatly appreciated if an answer was given, thank you.

silentserenity