Skip to content

AttributeError: 'Member' object has no attribute 'Status' #5838

Answered by Rapptz
iiLunar asked this question in Q&A
Discussion options

You must be logged in to vote

Since you've edited the post now, these lines are nonsensical:

        x = member.status
        val = None
        if x == discord.status.do_not_disturb:
            val = 'Do Not Disturb'

discord.status doesn't exist, it's discord.Status because it's a class and classes are in PascalCase. Python is a case-sensitive languages.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@iiLunar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@iiLunar
Comment options

@iiLunar
Comment options

@numbermaniac
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #5838 on September 20, 2020 04:31.