How to create dropdown menus for a discord bot in python (discordpy)

preview_player
Показать описание
In this video, we're going to show you how to use Discordpy Select to create simple surveys that you can use to understand your users better.

By using Discordpy Select, you can quickly and easily collect data about your users' preferences and behavior. This information can be used to improve your Discord server and make your users happy!

🔗 URLs 🔗

🗃️Github Project URL🗃️

🏆About this course🏆

The initial videos cover all necessary elements to create anything you want with discordpy, this includes:
- Registering a discord bot and inviting it to your server
- Setting up the python project with extra logging functionality
- Introduction to basic discordpy bot command structure
- Automatically load bot commands from separate files
- Handling user input with discordpy converters in a bot instance
- Handling errors during command execution
- Grouping commands together for better command organisation
- Creating discordpy COG (command collections)
- Loading COG extensions automatically from files
- Creating checks to limit access on bot commands
- DMs & "only you can see this" messages
- Hybrid commands to have both custom bot commands but also "SlashCommands"
- Dedicated Slashcommands
- Application commands in context menus for Members and Messages
- Decorators for Slashcommands
- Transform any user input in Slashcommands
- Handling autocompletion and filtering of Slashcommand user input
- Send rich text embeds with pictures, links and tables
- Create Views with Buttons for even better user interactions
- Showing Modals with Selects, TextInputs and Buttons

🎥Playlist 🎥

❤Community❤
To support the channel and see more tutorials about technologies:

👉LIKE & SUBSCRIBE to the channel:

👉Comment below the video for feedback, suggestions, wishes or if you have spotted a mistake!

🏷️ Tags 🏷️

© Created by Richard Schwabe with ❤ ©
Music License: Youtube Audio Library
All code examples fall under GNU General Public License v3.0
We do not recommend using code shown in tutorials or on our Github public repository to run in production environment and should be used for education only.
We cannot be held liable for any damage caused by the code or do not provide any warranty.
Рекомендации по теме
Комментарии
Автор

Thank you for your great video!

I load my options from a database.

I also have a command to add new options in this database. However, the new options are only displayed in the dropdown after restarting the bot .

Is there a way to reload the dropdown?

Raxor
Автор

Why this error may appear: TypeError: View.__init__() got an unexpected keyword argument 'options'

fally_UI
Автор

These are such confusing steps that you are teaching and very bad examples. I mean everything is just hardcoded, there is no dynamism in it. What if I want third dropdown? do I need to keep 3rd one in 2nd one's class (which itself is in 1st one's dependency) and then make everything so messy ?

_Astro.Nish_
Автор

theres no need to defer the interaction, you could just respond to it with await

pepsi
welcome to shbcf.ru