discord-py-slash-components-bridge
Bridge for discord-interactions and discord-components
Welcome
discord-interactions and discord-components are incompatible and this bridge can compatible these libs. This lib overrides discord-interaction classes and methods for working with discord-components components(Selects and Buttons)
How to use?
from discord.ext import commands
#from discord_slash import SlashCommand # No need anymore
from discord_slash_components_bridge import SlashCommand
bot = commands.Bot(...)
slash = SlashCommand(bot, ...)
If you have used this, then I prepared for you some things. Migration from discord-components
- Events
button_click
andselect_option
have been saved. - Event
interaction
now iscomponent
. -
Interaction
is not available to use. Now it'sComponentContext
and now you need use methods ofComponentContext