#Slash Commands
1 messages · Page 1 of 1 (latest)
ignore it should not be there
Send the error message
theres no error meassage
Ok so ur issue is the fact that ur creating a prefixed command group, not a slash command group which is why it doesn't show up and there's no error message
Use this example to implement slash command groups https://github.com/Pycord-Development/pycord/blob/master/examples/app_commands/slash_groups.py
GitHub
Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API - pycord/slash_groups.py at master · Pycord-Development/pycord
ok will try
You can use commands.Bot or discord.Bot for slash commands
Can someone help my slash commands does not work
import discord
from discord.ext import commands
client = commands.Bot(debug_guilds = [895385388829540472])
client.remove_command("help")
@client.event
async def on_ready():
print("Bot started")
@client.group(invoke_without_command = True, description = "Shows the available commands.")
async def help(ctx, user):
em = discord.Embed(title = "Help", description = "For more info: /help <command>", color = discord.Color.from_rgb(23, 16, 23))
em.add_field(name = "Fun", value = f"`commands` ")
await ctx.send(embed = em)
return
client.run(token)