Z
Z
Zagir Majidov2021-10-08 11:46:04
Python
Zagir Majidov, 2021-10-08 11:46:04

Discord.py how to get the name of all commands?

Hello! I have a discord bot on Python 3.8.6, I want to get the name of all commands, I tried commands.Command.name; client.commands.command.name; commands.command.name gave an error: AttributeError: type object 'Command' has no attribute 'name'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JiMoon, 2021-12-26
@Zagir-vip

I saw something controversial in the comments, but try using the standard discord help command. There are cons in it, I don’t argue, but this is a version for those who have almost read the documentation (not about you)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question