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)
pip install --upgrade discord-slash-components-bridge
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, ...)Fixed Messageable.fetch_message() returning discord.Message. Now it return ComponentMessage
- Now you no need
DiscordComponents(...)in your code. - Events
button_clickandselect_optionhave been saved. - Event
interactionnow iscomponent. Interactionis not available to use. Now it'sComponentContextand now you need use methods ofComponentContext
- Now You can't use components of
discord-py-interactions. You will get error. ComponentContext.componentnow returnComponentobject(likeButtonorSelect) fromdiscord-components- with
ComponentContext.message.componentssame thing.