Skip to main content

dpy-appcommands

PyPi PyPi

Support

If you want any support then join my discord server

Installation

To install this module, run

pip install -U dpy-appcommands

Usage

For a headstart, here's an example but if you want to view full documentation on it then click here

import appcommands
from discord.ext import commands

bot = appcommands.Bot(command_prefix=commands.when_mentioned_or('?'))

class Blep(SlashCommand):
    def __init__(self):
        super().__init__(
            name="blep",
            description = "Some blep description",
        )

    async def callback(self, ctx: InteractionContext, pleb: str = None):
        await ctx.reply(f"why {pleb}", ephemeral=True)

# or

@bot.slashcommand(name="test", description="test")
async def test(ctx):
    await ctx.send("tested")

# or

@bot.slashcommand(name="test2", description="test")
async def test(ctx):
    await ctx.respond(f"tested {ctx.author}")

@bot.event
async def on_ready():
    print(f'Logged on as {bot.user} (ID: {bot.user.id})')
    await bot.add_app_command(Blep(), on_discord=True) # awaited

bot.run("TOKEN")

Screenshots

image

image

image

Metadata

Release files for dpy-appcommands 2.0.4.5

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-appcommands 2.0.4.5
File Size Uploaded Provenance Actions
dpy-appcommands-2.0.4.5.tar.gz 23.9 kB Without provenance Details for dpy-appcommands-2.0.4.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dpy-appcommands 2.0.4.5
File Interpreter ABI Platform Actions
dpy_appcommands-2.0.4.5-py3-none-any.whl Python 3 none any Details for dpy_appcommands-2.0.4.5-py3-none-any.whl

Total release size: 49.8 kB

Release files / dpy-appcommands-2.0.4.5.tar.gz

Download URL dpy-appcommands-2.0.4.5.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
29e4e2fd9e38dba8cec08310d20fb9caba65ace5707e3241b36efc2ee0131479
BLAKE2b-256 checksum
How to use checksums
228d9adaa407072db0f4ff5c3ce470d6517c558d2882deb6f1a95f2dd3ac9278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / dpy_appcommands-2.0.4.5-py3-none-any.whl

Download URL dpy_appcommands-2.0.4.5-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f079d99d6c09020996f70936078c8c4e8c4a8edec24ba5f4f90506efc28e14cb
BLAKE2b-256 checksum
How to use checksums
fbc32b33c7f7cc728b28d50ccc99bab66581db2b52fff0da0b50db94458bb9af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Security for dpy-appcommands 2.0.4.5

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.

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