Frequent questions
Before asking a question, look at these :)
Last updated
Was this helpful?
Before asking a question, look at these :)
Last updated
Was this helpful?
Before, check you are using the correct library (discord-components
not discord-buttons
) and if your library is in .
Selects are currently (2021.6.5) visible only for beta users so normal users can't see the component. But you can see selects on ephemeral messages!
Your code must be something like
You should use a two-dimensional array like below to make buttons inline.
Simple. Edit the message with parameter components
set to []
.
Just respond with the type 6
with no other parameters.
There is an event on_button_click
. You can use this as normal events.
Have you put DiscordComponents(<discord.Client or discord.ext.commands.Bot>)
inside the on_ready
event?
You should put a while on discord.Client.wait_for
to handle multiple clicks
This is impossible but you can ignore the interaction by putting a check.
There is on GitHub.