Represents discord_components client.
bot
The bot to wrap.
Type: discord.Client | discord.ext.commands.Bot
discord.Client
discord.ext.commands.Bot
Your discord bot
http
The HTTPClient for this library
Type: discord-components.HTTPClient
discord-components.HTTPClient
wait_for
Wait for interaction with structured filters.
Parameters:
component (discord-components.Component) - The component
discord-components.Component
message ( discord.Message) - The message with component
discord.Message
guild (discord.Guild) - The guild of message with component
discord.Guild
channel (discord.abc.Messageable) - The channel of message with component
discord.abc.Messageable
user (discord.User) - The user to interact
discord.User
timeout (float) - The time to wait
float
Returns: discord-components.Interaction
discord-components.Interaction
add_callback
Add a callback function to a component
component (discord-components.Component) - The component to add callback
callback - The callback function
uses (int) - How many times to make the component usable
int
filter - The filter function
Returns: discord-components.ComponentMessage
discord-components.ComponentMessage
Last updated 2 years ago