Python Discord Bot Select Menu Tutorial (in depth)

  Рет қаралды 11,786

idgnfs

idgnfs

Күн бұрын

I could not find a good video that explained select menus in python from the beginning to the end so I made this video to hopefully help people. If you have any questions feel free to ask. I am using VS Code as my IDE for this project.
pip install discord-components
View the code:
github.com/erobin27/Tutorials...
discord-components API:
devkiki7000.gitbook.io/discor...
discord interactions API:
/ discord
Time Stamps:
example: 0:00 - 0:39
imports: 0:40 - 2:30
bot setup: 2:31 - 5:44
Selectbox Creation: 5:45 - 17:09

Пікірлер: 14
@brownboyaayan5082
@brownboyaayan5082 2 жыл бұрын
bro this is really underrated
@ddgaxelnilsson7855
@ddgaxelnilsson7855 2 жыл бұрын
I still believe you’re becoming a big one. It’ll just take time.
@PErameIn
@PErameIn 2 жыл бұрын
Thx for help I couldn't figure out how to make different reactions to different user responses
@DirtyDiscoDancer
@DirtyDiscoDancer 2 жыл бұрын
Can you make a video showing how to dynamically make drop down lists. Make a generic command that takes a key value database or a parsed list. This way everything doesn't need to be hard coded and the list can be updated independently using other commands. Same for Buttons?
@inevergivehopegamer5903
@inevergivehopegamer5903 2 жыл бұрын
u got a sub :ya:
@01_zy89
@01_zy89 2 жыл бұрын
i have a question, how would i make the bot send the menu once a new channel is created? like if a channel that has the name ticket on it is created, the bot would send the menu there
@Vendzy.
@Vendzy. 2 жыл бұрын
hello is there anyway to embed the ephemeral message?
@vinixee
@vinixee 2 жыл бұрын
Is there a way to delete the dropdown once it has been interacted and also is it possible to grab information from the dropbox once clicked. For example, if someone were to click "Hello" on the dropbox, the bot would then send a message in a channel of your choice saying "user has clicked Hello". Thanks!
@idgnfs
@idgnfs 2 жыл бұрын
To delete the interaction is really hard. Discord api has a DELETE rest api call that you can send a request with the interaction token to but it I haven’t got it to consistently work. And yes I think so. I haven’t tested this but by looking at the API it looks possible. try something in the if statement for example Ctx.guild.channels
@vinixee
@vinixee 2 жыл бұрын
@@idgnfs if not delete, how about edit? Also, thank you for that!
@fryz1404
@fryz1404 2 жыл бұрын
@@vinixee if u can be sure, that there wont be any messages inbetween the bots message and the given reaction, you could just use purge()
@egoc3ntr1sm
@egoc3ntr1sm 2 жыл бұрын
waits for the new video
@darkgod1117
@darkgod1117 2 жыл бұрын
github link doesnt work anymore
@xuamnhac
@xuamnhac 2 жыл бұрын
Damn low quality
How to write a Discord Role Reaction Bot in Python w/ Discord.py
17:16
Anson the Developer
Рет қаралды 59 М.
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 64 МЛН
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 30 МЛН
A beautiful math question for advanced students
10:38
Higher Mathematics
Рет қаралды 18 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 177 М.
How To Code a Discord Music Bot
6:10
Max Codez
Рет қаралды 228 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 794 М.
ChatGPT Just Learned To Fix Itself!
5:47
Two Minute Papers
Рет қаралды 91 М.
Physicists Claim They Can Send Particles Into the Past
7:21
Sabine Hossenfelder
Рет қаралды 260 М.
Я ВЫЖИЛ ПОСЛЕ НАПАДЕНИЯ ЕНОТА!
24:41
EdisonPts
Рет қаралды 1,4 МЛН
MEGA BOXES ARE BACK!!!
8:53
Brawl Stars
Рет қаралды 35 МЛН