Answer the question
In order to leave comments, you need to log in
What are the ctx.author (discord.py) arguments?
Hello, I'm making a bot in Discord, now I'm doing the "Profile" command and I can't find how to do something that would show the status of the User, Online / Offline, etc. in other words ctx.author...
I know that there is ctx.author.name , ctx.author.discriminator.
I will be grateful for help. :)
Answer the question
In order to leave comments, you need to log in
Have a look at this thread, it might work: How to get information about a discord py user?
Apparently, it's not about arguments, but about attributes.
Functions and methods have arguments, this is what is passed to the function in brackets.
What you have shown are the attributes. You can view the list of attributes with the command print(dir(obj))
. This will display all the attributes of the obj object in the form of a list (list).
a = 1
print(dir())
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question