Slash Command not appearing
I managed to get the bot to join the server and be online but now my issues is that the slash command do not appear
I also edited the original code since it did not work for me here it is:
import discord from discord.ext import commands import json import os
with open("config.json", "r") as f: config = json.load(f)
intents = discord.Intents.all() client = discord.Client(intents=intents)
bot = commands.Bot(command_prefix = config["prefix"],intents=intents ) bot.remove_command("help")
for file in os.listdir("./cogs"): if file.endswith(".py"): name = file[:-3] bot.load_extension(f"cogs.{name}")
@bot.event async def on_ready(): print(f"Bot is online") await bot.change_presence(activity=discord.Game(name="big brain | =help"))
try: bot.run(config["token"]) except Exception as err: print(f"Error: {err}")
Hey did u find the answer to this ?
Im having the same issue