Skip to main content

Discord Extension Interaction

Release

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-interaction is not supported now.

Installing

Python 3.9 or higher is required.

To install the library, you can just run the following command:

# Linux/macOS
python3 -m pip install -U discord-ext-interaction

# Windows
py -3 -m pip install -U discord-ext-interaction

To install the library with discord.py

# Linux/macOS
python3 -m pip install -U discord-ext-interaction[discordpy]

# Windows
py -3 -m pip install -U discord-ext-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-ext-interaction 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discord-ext-interaction 0.6.1
File Size Uploaded Provenance Actions
discord-ext-interaction-0.6.1.tar.gz 2.2 kB Without provenance Details for discord-ext-interaction-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for discord-ext-interaction 0.6.1
File Interpreter ABI Platform Actions
discord_ext_interaction-0.6.1-py3-none-any.whl Python 3 none any Details for discord_ext_interaction-0.6.1-py3-none-any.whl

Total release size: 4.3 kB

Release files / discord-ext-interaction-0.6.1.tar.gz

Download URL discord-ext-interaction-0.6.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
64e2bddc78e153d45a9590fccb10451aecb566b3cb386b7e7d331f6f47bb3cfe
BLAKE2b-256 checksum
How to use checksums
00d6b9626e6381ad3fb7738cf582c6813132557cb3b7cbdb530411009018613f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.6

Release files / discord_ext_interaction-0.6.1-py3-none-any.whl

Download URL discord_ext_interaction-0.6.1-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb6fd91ebfc408c5da40b20313c87f036bc0c820b58291e63fba81c2f4f59e4a
BLAKE2b-256 checksum
How to use checksums
e327fea64a43d373063b863df227be4047d726e02aa85478a000bb0257f1de64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.6

Security for discord-ext-interaction 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page