Discord Extension Interaction
Introduce
Slash Command is supported through discord.py.
Based on discord.ext.commands, compatible with existing frames.
Compatibility list
| Moudle Name | Version | Tested |
|---|---|---|
| discord.py | v2.3.0 | ✔️ |
| Pycord | v2.4.1 | ❌ |
- Plans to support py-cord, but
discord-extension-interactionis not supported now.
Installing
Python 3.9 or higher is required.
To install the library without full voice support, you can just run the following command:
# Linux/macOS
python3 -m pip install -U discord-extension-interaction
# Windows
py -3 -m pip install -U discord-extension-interaction
To install the library with discord.py
# Linux/macOS
python3 -m pip install -U discord-extension-interaction[discordpy]
# Windows
py -3 -m pip install -U discord-extension-interaction[discordpy]
To install the development version, do the following:
$ git clone https://github.com/gunyu1019/discord-extension-interaction
$ cd discord-extension-interaction
$ python3 -m pip install -U .
Quick Example
from discord.ext import interaction
from discord import Intents
intents = Intents.default()
bot = interaction.Client(global_sync_command=True, intents = intents)
@interaction.command(description="This is ping")
async def ping(ctx: interaction.ApplicationContext):
await ctx.send("pong!")
return
bot.add_interaction(ping)
bot.run("TOKEN")
You can find more examples in the examples directory.
Metadata
Release files for Discord-Extension-Interaction 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Discord-Extension-Interaction-0.6.2.tar.gz | 31.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Discord_Extension_Interaction-0.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.8 kB
Release files / Discord-Extension-Interaction-0.6.2.tar.gz
| Download URL | Discord-Extension-Interaction-0.6.2.tar.gz |
|---|---|
| Size | 31.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52067530d78034d1164a0370dbce0e522ad30ebaf8e582b3312b4d72b2f0f40a
|
|
BLAKE2b-256 checksum How to use checksums |
33e31e62a3f903c51e5a619761cc09abd36d67f69eca116b1ee91500a2362781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / Discord_Extension_Interaction-0.6.2-py3-none-any.whl
| Download URL | Discord_Extension_Interaction-0.6.2-py3-none-any.whl |
|---|---|
| Size | 44.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
427890282df8db6dd9493ac660b8b8e6fb2d6e936f43716874e78d0c1bbe28ce
|
|
BLAKE2b-256 checksum How to use checksums |
028a89d59ad8b6b53e02aacf4cb1d673e3705f5a5c112bf9ed3fb21b5463e164
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|