Skip to content

SpicyTakis/discord-py-slash-command

 
 

Repository files navigation

discord-py-slash-command

Simple Discord Slash Command extension for discord.py.

Fork

Added support for VBU's Bot instance

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.

About

Simple Discord Slash Command extension for discord.py.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%