From 72aa1f8b514ab949792b2446c9de4ef44fba7f82 Mon Sep 17 00:00:00 2001 From: Elitesparkle Date: Mon, 10 Oct 2022 11:15:02 +0200 Subject: [PATCH] Add imports to Slash Command Group example --- docs/interactions/application-commands/slash-commands.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/interactions/application-commands/slash-commands.mdx b/docs/interactions/application-commands/slash-commands.mdx index b36a69d1..3ef7752f 100644 --- a/docs/interactions/application-commands/slash-commands.mdx +++ b/docs/interactions/application-commands/slash-commands.mdx @@ -95,7 +95,9 @@ bot.run("TOKEN") Or, you can instead manually make a `SlashCommandGroup` class like so: ```python -math = SlashCommandGroup("math", "Math related commands") +import discord + +math = discord.SlashCommandGroup("math", "Math related commands") @math.command() async def add(ctx, num1: int, num2: int):