semvec/pypi-packages huggingface dataset:
discord-slash-components-bridge 0.1.1
Library for discord-components and discord-py-interactions(discord-slash).
License: MIT License
Requires Python: >=3.6

<div align="center">
  <h1>discord-py-slash-components-bridge</h1>
  <h3>Bridge for discord-interactions and discord-components</h3>
</div>
<div align="center">
  <a href="https://pypi.org/project/discord-slash-components-bridge/"><img src="https://img.shields.io/pypi/dm/discord-slash-components-bridge?style=for-the-badge" alt="PyPI downloads"></a>
</div>
 
<h2>Welcome</h2>
 
[discord-interactions](https://github.com/goverfl0w/discord-interactions) and [discord-components](https://github.com/kiki7000/discord.py-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)

<h2>How to use?</h2>

```py
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, ...)

```

<h2>Migration from discord-components</h2>
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`