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

feat: Member.display_banner #2556

Merged
merged 20 commits into from
Aug 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: references to self._user.banner
Co-authored-by: YoggieS <61660055+yoggys@users.noreply.github.com>
Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
  • Loading branch information
MattyTheHacker and yoggys authored Aug 27, 2024
commit 600ff2606822c11178cb08ab20466e5c321ea4b5
4 changes: 2 additions & 2 deletions discord/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,10 @@ def guild_banner(self) -> Asset | None:

.. versionadded:: 2.7
"""
if self._user.banner is None:
if self._banner is None:
return None
return Asset._from_guild_banner(
self._state, self.guild.id, self.id, self._user.banner
self._state, self.guild.id, self.id, self._banner
)

@property
Expand Down