Metadata-Version: 2.1
Name: discord-slash-components-bridge
Version: 0.1.1
Summary: Library for discord-components and discord-py-interactions(discord-slash).
Home-page: https://github.com/Damego/discord-py-slash-components-bridge
Author: Damego
Author-email: danyabatueff@gmail.com
License: MIT License
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

<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`





