Skip to content

Commit ab243d2

Browse files
B1ue-Devpre-commit-ci[bot]Toricane
authored
fix: mention in Member() being NoneType (#1063)
* docs: Fix description in ``set_rate_limit_per_user`` * feat: Adding ``premium_progress_bar_enabled`` for ``Guild`` * feat: Adding ``communication_disabled_until`` in GuildMember Gateway dispatch * ci: correct from checks. * fix: Fix `mention` being NoneType * chore: Update interactions/api/models/member.py By Toricane's suggestion. Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Toricane <73972068+Toricane@users.noreply.github.com>
1 parent 99073f7 commit ab243d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/api/models/member.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def mention(self) -> str:
143143
:return: The string of the mentioned member.
144144
:rtype: str
145145
"""
146-
return f"<@!{self.user.id}>" if self.nick else f"<@{self.user.id}>"
146+
return f"<@{'!' if self.nick else ''}{self.id}>"
147147

148148
@property
149149
def name(self) -> str:

0 commit comments

Comments
 (0)