Skip to content

Instantly share code, notes, and snippets.

@Malarne
Last active December 22, 2020 19:12
Show Gist options
  • Save Malarne/7f0aac92f3930e9d139d4beb7575c973 to your computer and use it in GitHub Desktop.
Save Malarne/7f0aac92f3930e9d139d4beb7575c973 to your computer and use it in GitHub Desktop.
import discord
from discord.ext import commands
from discord_slash import SlashCommand
from discord_slash 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(content="test", embeds=[embed])
bot.run("MzUzMTc2NjQyNTQzNDE5Mzky.WalnYQ.AZSPNFjlW_r8q_jLre2ifohFkic")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment