#Slash commands that did not appear

1 messages · Page 1 of 1 (latest)

low hearth
#

Hello, it's been a while that my slash commands don't appear with my main bot but strangely they appear with my secondary bot.
The main bot already uses prefix commands on 3 different files but even when it's off, the slash commands don't work.

Here is the beginning of my program with the libraries I imported and the "on_ready()" to save my commands.
Can you help me to solve this problem please?
If you need more information about my program or other I can give it to you

import csv
import datetime
from random import randint
import discord
import asyncio
from dotenv import load_dotenv
from discord.utils import get
from discord.ext import commands
import os

intents = discord.Intents(messages = True, guilds = True, reactions = True, members = True, presences = True)
bot = discord.Bot(command_prefix="#",
                  debug_guilds=[910953201652629586], case_insensitive=True, intents=intents,)  # Create a bot object


@bot.event
async def on_ready():
    print("Ready !")
timid condor
#

you could start off by updating to 2.0, not that it explains or solves it but it is easier to find problems in a stable version than to error handle specific beta versions

buoyant fossil
#

b1 is very old and there's been quite a lot of changes since, so updating is definitely the best place to start

low hearth
#

I can put all this as a version. and sorry for being absent.

#

Well, I installed version 2.0.0 and... well, it works. Thanks a lot to both of you and py-cord is really the best library

low hearth
#

Ah, now they only work once...

upper pivot
#

Why do you use command_prefix in a discord.Bot?