Skip to main content

Library for discord-components and discord-py-interactions(discord-slash).

Project description

discord-py-slash-components-bridge

Bridge for discord-interactions and discord-components

PyPI downloads

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, ...)

Migration from discord-components

If you have used this, then I prepared for you some things.

  • Events button_click and select_option have been saved.

  • Event interaction now is component.

  • Interaction is not available to use. Now it's ComponentContext and now you need use methods of ComponentContext

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord_slash_components_bridge-0.1.1.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page