Accessing server-specific attributes of discord.Member with user apps causes an exception #2515
Closed
3 tasks done
Labels
bug
Something isn't working
Failing API Reflection
priority: high
High Priority
status: todo
This issue needs work
Milestone
Summary
If you access server-specific (aka Member related stuff) with a user-installed app, python throws an exception trying to get the member object. I also found that member.display_avatar in particular throws an error only if a server-specific avatar has been set.
Reproduction Steps
Make a user app
Install it on your account
Make a user command (context menu > user)
Try to print member.roles, member.top_role, member.display_avatar (if set) etc., anything Member-specific
See the console for the exception
Minimal Reproducible Code
Expected Results
Pycord handles the case of a user-installed app automatically, and simply returns None for e.g. member.roles, or the global avatar in the case of member.display_avatar
Actual Results
Pycord seems to not handle this at all and throws an exception
Intents
all / not applicable, happens regardless of intents
System Information
Checklist
Additional Context
Traceback for printing member.roles (project path replaced with
...
)The text was updated successfully, but these errors were encountered: