DiscordComponents
DiscordComponents
Represents discord_components client.
bot
The bot to wrap.
Type: discord.Client | discord.ext.commands.BOT
change_discord_methods
Whether to override the discord methods. So with this enabled, some changes could be needed to your code.
Type: bool
Default: True
add_listener
Whether to add the on_socket_response event or override it (Only when the bot is discord.ext.commands.Bot).
If you are already using on_socket_response on your bot or on a third party library, we recommend you to enable this.
Type: bool
Default: True
bot
Your discord bot
Type: discord.Client | discord.ext.commands.Bot
change_discord_methods
Overrides the methods of the discord.py library. Parameters:
add_listener (
bool, defaults toTrue) - Same as the init parameter.
Returns: void
fetch_component_message
Converts a message object to a ComponentMessage object.
Parameters:
message (
discord.Message) - The message to convert.
Returns: discord-components.ComponentMessage
Last updated
Was this helpful?