Skip to main content

Simple Discord Slash Command extension for discord.py.

Project description

discord-py-slash-command

Simple Discord Slash Command extension for discord.py.

Example

import discord
from discord.ext import commands
from discord_slash import SlashCommand
from discord_slash.model import SlashContext

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())
slash = SlashCommand(bot)


@slash.slash(name="test")
async def _test(ctx: SlashContext):
    embed = discord.Embed(title="embed test")
    await ctx.send(text="test", embeds=[embed])


bot.run("discord_token")

Installation

pip install -U discord-py-slash-command

DOCS

https://discord-py-slash-command.readthedocs.io/en/latest/
See discord-api-docs for some more information about some formats.

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

discord-py-slash-command-1.0.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

discord_py_slash_command-1.0.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file discord-py-slash-command-1.0.1.tar.gz.

File metadata

  • Download URL: discord-py-slash-command-1.0.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for discord-py-slash-command-1.0.1.tar.gz
Algorithm Hash digest
SHA256 eda9ebe2547460a91c9a148d99379e26828a7d53139acdf2ce16bd64c9bb5a74
MD5 689459746ea853e5f6d52d0c3bb45199
BLAKE2b-256 271cf963c18f5e0b45a4f09593868b52e2d62b3248e1be368764a7ddeea8e89b

See more details on using hashes here.

File details

Details for the file discord_py_slash_command-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: discord_py_slash_command-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for discord_py_slash_command-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8cd86020da389f6bcef1e4ad2eff58b3d2a7d45d42ac94d619b2082da7c9553
MD5 1f1619e8c082511b87cabae42315aea2
BLAKE2b-256 2dbf695fb65e6653ac0bd22e3d15682cbcf99722649ad072590dc8f27cacf5d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page