DiscordComponents
Last updated
Last updated
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 component
message ( discord.Message
) - The message with component
guild (discord.Guild
) - The guild of message with component
channel (discord.abc.Messageable
) - The channel of message with component
user (discord.User
) - The user to interact
timeout (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 callback
callback - The callback function
uses (int
) - How many times to make the component usable
filter - The filter function
Returns: discord-components.ComponentMessage