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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for discord-py-slash-command-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eda9ebe2547460a91c9a148d99379e26828a7d53139acdf2ce16bd64c9bb5a74 |
|
MD5 | 689459746ea853e5f6d52d0c3bb45199 |
|
BLAKE2b-256 | 271cf963c18f5e0b45a4f09593868b52e2d62b3248e1be368764a7ddeea8e89b |
Close
Hashes for discord_py_slash_command-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8cd86020da389f6bcef1e4ad2eff58b3d2a7d45d42ac94d619b2082da7c9553 |
|
MD5 | 1f1619e8c082511b87cabae42315aea2 |
|
BLAKE2b-256 | 2dbf695fb65e6653ac0bd22e3d15682cbcf99722649ad072590dc8f27cacf5d6 |