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.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

discord_py_slash_command-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord-py-slash-command-1.0.0.tar.gz
  • Upload date:
  • Size: 5.2 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.0.tar.gz
Algorithm Hash digest
SHA256 7b8b70578357399457bb4b7c0479e7915ae5a27fdfba03272ae2802abb7b595d
MD5 6dd1c58f18f9b660099dba2bb52c75dd
BLAKE2b-256 7b50c90dd9041088bb7f89cfe60dc459315506fa4cb59a065586336d39335920

See more details on using hashes here.

File details

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

File metadata

  • Download URL: discord_py_slash_command-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2f773a49a089fcd92f3ec983710be34de751a6338087126dba5b525d7cec1cb
MD5 5392cf50e4cf0cabfc914e9e113a3a16
BLAKE2b-256 cd9d4d182cb6c77dbb60ccf9117667fd87c21780c6bd70defcc4fcd6653c6260

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