Hey,
I have problems with the regestration of the slash commands. I have done everything exactly as the instructions say. I also tried with and Guild restriction but it didn't work.
The bot already ran overnight but nothing was regestrated.
This is what a version of the code looks like:
import discord
from discord import slash_command
intents = discord.Intents.default()
intents.members = True
bot = discord.Bot(intents=intents)
@bot.event
async def on_ready():
print(f"We have logged in as {bot.user}")
@slash_command() # Create a slash command
async def hello(ctx: discord.ApplicationContext):
"""Say hello to the bot""" # The command description can be supplied as the docstring
await ctx.respond(f"Hello {ctx.author}!")
bot.run('Token')
FYI, I don't get any errors
