Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The user model does not currently contain support for a banner_color attribute #607

Closed
1 task done
Dworv opened this issue Mar 2, 2022 · 1 comment · Fixed by #612
Closed
1 task done
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Comments

@Dworv
Copy link
Contributor

Dworv commented Mar 2, 2022

Describe the bug.

When creating a User model, you get this message:
WARNING:mixin:Attribute banner_color is missing from the User data model, skipping.

Ideally, there would be an attribute for this.

List the steps.

  1. Start the bot
  2. Turn on logging
  3. Use bot._http.get_user() to get the user dict from Discord
  4. Attempt to use that dict to create an interactions.User object

What you expected.

I expect no error and a banner_color attribute to be created

What you saw.

Instead, I received this warning from my Python terminal:

WARNING:mixin:Attribute banner_color is missing from the User data model, skipping.

What version of the library did you use?

stable

Version specification

4.1.1b1

Code of Conduct

  • I agree to follow the contribution requirements.
@Dworv Dworv added the bug Something isn't working label Mar 2, 2022
@i0bs i0bs added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 2, 2022
@i0bs
Copy link
Contributor

i0bs commented Mar 2, 2022

More of a general edge case where, due to being both a. undocumented and b. simply missing, it's a feature request, but we'll be flagging it.

@i0bs i0bs linked a pull request Mar 2, 2022 that will close this issue
8 tasks
@EdVraz EdVraz closed this as completed Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants