Answer the question
In order to leave comments, you need to log in
Async def in discord.Py library?
I am writing a simple bot in discord, I decided to write information about the bot (by the type of creation date and other nonsense)
async def info(ctx):
await ctx.send('Я был создан...')
Answer the question
In order to leave comments, you need to log in
Is this all code? The decorator must be hung on the commands. @bot.command()
Example hangs in the Bot Example section https://github.com/Rapptz/discord.py
so no, everything seems to work
fine The only thing I did was to remove the line intents = discord.Intents.all()
To make it look like this:
But this was done to solve another problembot = commands.Bot( command_prefix = ".")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question