Library for discord-components and discord-py-interactions(discord-slash).
Project description
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, ...)
Migration from discord-components
If you have used this, then I prepared for you some things.
-
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
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
Built Distribution
File details
Details for the file discord_slash_components_bridge-0.1.1.tar.gz
.
File metadata
- Download URL: discord_slash_components_bridge-0.1.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 314a1f3312ff629ef06bc043eeac31ede74a069eaea87466ddf7f275be33321e |
|
MD5 | 3efd83849e25c508670da65f3f7f4a42 |
|
BLAKE2b-256 | 347cec7bf5fc10eaba5fe69427204b0900fb71460941a6eb9bfefa42590dc2d1 |
File details
Details for the file discord_slash_components_bridge-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: discord_slash_components_bridge-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59c04ad7985d0440e66a7ba72a21ee8753bde14a9e140ec60ff0feacf318105 |
|
MD5 | b50908a65bb74a94d8d1274107144570 |
|
BLAKE2b-256 | 8b07ffb150429a0cf61ac4066e881eaa9ad8f08da93573b6481f2d3b1030a957 |