Skip to content

Dropdown Menu #406

Closed Answered by 1oonie
PotentialAviator15 asked this question in Q&A
Nov 6, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

If you want to add roles when someone selects an item in your select menu, in your callback check which item(s) they have selected with select.values or self.values if you are subclassing discord.ui.Select. Then you can add a role to interaction.user (the person who selected the item) by checking what they selected.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@PotentialAviator15
Comment options

@pratheek78
Comment options

@PotentialAviator15
Comment options

@pratheek78
Comment options

Answer selected by PotentialAviator15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants