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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b8b70578357399457bb4b7c0479e7915ae5a27fdfba03272ae2802abb7b595d |
|
MD5 | 6dd1c58f18f9b660099dba2bb52c75dd |
|
BLAKE2b-256 | 7b50c90dd9041088bb7f89cfe60dc459315506fa4cb59a065586336d39335920 |
Close
Hashes for discord_py_slash_command-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2f773a49a089fcd92f3ec983710be34de751a6338087126dba5b525d7cec1cb |
|
MD5 | 5392cf50e4cf0cabfc914e9e113a3a16 |
|
BLAKE2b-256 | cd9d4d182cb6c77dbb60ccf9117667fd87c21780c6bd70defcc4fcd6653c6260 |