Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

slash-ext

Yet another slash command lib made for discord.py, except this one intergrates will intergrate with discord.ext, thus making it a lot easier to use. Some resources are provided too, such as the INTERACTION_CREATE socket response. This is provided in the debug.json file. I do not mind sharing this token as its invalid.

Example:

import discord
from discord.ext import commands, slash
from discord.ext.slash.abc import SlashContext

bot = commands.Bot(command_prefix = "!", case_insensitive = True)
slashParent = slash.SlashBot(bot, "<bot token>", 770301542170361896) #<= Bot User ID

@bot.event
async def on_ready():
    print("Ready!")




@slashParent.slash_command(name = "rachel", description = "hola", guild_ids=[830418497837203457]) #make sure to not have names with spaces in them as discord will not create them.
async def dummy(ctx : SlashContext):
    embeds = [discord.Embed(title = "Hello World")]
    await ctx.send(content = "Hello World", embeds = embeds)
    await ctx.edit(content = "Hello Discord")

@bot.event
async def on_slash_recieve(payload): #=> event that is fired when a slash command is fired and it is found in the bot's cache
    print("RECEIEVED SLASH")
    print(payload)

bot.run("<bot token>")

We give you the option to pass in the bot token and bot user id because you cannot access the token and id before the bot is ready. If you have any questions, please DM me on Discord: moonie#6598

Metadata

Release files for dpy-slash-ext 0.0.1a0

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

Source distribution (sdist)

Source distribution for dpy-slash-ext 0.0.1a0
File Size Uploaded Provenance Actions
dpy-slash-ext-0.0.1a0.tar.gz 4.3 kB Without provenance Details for dpy-slash-ext-0.0.1a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dpy-slash-ext 0.0.1a0
File Interpreter ABI Platform Actions
dpy_slash_ext-0.0.1a0-py3-none-any.whl Python 3 none any Details for dpy_slash_ext-0.0.1a0-py3-none-any.whl

Total release size: 9.5 kB

Release files / dpy-slash-ext-0.0.1a0.tar.gz

Download URL dpy-slash-ext-0.0.1a0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5d032de6389dc28a4aa3ff6fb0333bb4c3ca26f489ada05dca6a54632d92a833
BLAKE2b-256 checksum
How to use checksums
6c5157468503d4da87dc19a8b7cd2f675d32e5c4810a81c59c38b84f6a0c2cde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

Release files / dpy_slash_ext-0.0.1a0-py3-none-any.whl

Download URL dpy_slash_ext-0.0.1a0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
268bc596d4fe2e39e3d565e846f36ec40db3de666b3e51538ee1e01ff7c06586
BLAKE2b-256 checksum
How to use checksums
0da23f86f74a78971b64868ef9248172e11f5e642cdb0123698593cf165b6d39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

Security for dpy-slash-ext 0.0.1a0

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