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

Replace instances of member.nick or member.name with member.display_name #21

Merged
merged 1 commit into from
Jan 15, 2022

Conversation

anoadragon453
Copy link
Owner

Fixes #20.

In a couple different places, we wanted to get either Busty bot's current server nickname (Member.nick, if one was set), or if not, the bot's canonical name (Member.name).

Forgetting to use Member.name if Member.nick was None lead to a bug that caused #20.

Instead, we should just use the discord.Member.display_name attribute, which is effectively the same, but less prone to mistakes.

@anoadragon453 anoadragon453 merged commit 8b0b920 into main Jan 15, 2022
@anoadragon453 anoadragon453 deleted the anoa/display_name branch January 15, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Busty doesn't seem to change her name back to the original string after a bust
2 participants