Trying to access the global_name of a User (and by inheritance, when it's a Member also) results in an error, for this documented feature is not actually implemented.
The documentation linked is for the latest alpha version of the library. To use this attribute, you must install from git. For the stable docs, see here
Summary
Documented feature isn't actually implemented
Reproduction Steps
Trying to access the
global_name
of aUser
(and by inheritance, when it's aMember
also) results in an error, for this documented feature is not actually implemented.Here is the relevant documentation: https://discordpy-self.readthedocs.io/en/latest/api.html?highlight=global%20name#discord.User.global_name https://discordpy-self.readthedocs.io/en/latest/api.html?highlight=global%20name#discord.Member.global_name
Code
Expected Results
The author's username is gogotron123. However the author's name as displayed is Gogotron.
Actual Results
The author's username is gogotron123. AttributeError: 'Member' object has no attribute 'global_name'
System Information
Checklist
Additional Information
Note that this attribute is different to
nick
andname
. The attributedisplay_name
doesn't seem to produce the desired results either.