F
F
froppe2021-08-17 17:12:01
Python
froppe, 2021-08-17 17:12:01

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('Я был создан...')


So in the console it turned out that there is no such command in discord.py.
So, to the point of the issue. Where can I see the commands that work in discord.pai?
So that incidents like this don't happen again.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2021-08-17
@SoreMix

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

L
Loshara Tupoi, 2021-08-18
@GamerDisclaimer

611cd7b3c2f2a848214370.jpeg
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 = ".")
611cd8514908b819496216.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question