DiscordComponents
DiscordComponents
Represents discord_components client.
bot
The bot to wrap.
Type: discord.Client | discord.ext.commands.Bot
bot
Your discord bot
Type: discord.Client | discord.ext.commands.Bot
http
The HTTPClient for this library
wait_for
Wait for interaction with structured filters.
Parameters:
component (
discord-components.Component) - The componentmessage (
discord.Message) - The message with componentguild (
discord.Guild) - The guild of message with componentchannel (
discord.abc.Messageable) - The channel of message with componentuser (
discord.User) - The user to interacttimeout (
float) - The time to wait
Returns: discord-components.Interaction
add_callback
Add a callback function to a component
Parameters:
component (
discord-components.Component) - The component to add callbackcallback - The callback function
uses (
int) - How many times to make the component usablefilter - The filter function
Returns: discord-components.ComponentMessage
Last updated
Was this helpful?