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

Fix type of ServerMemberDeleteEvent#user #730

Closed
wants to merge 3 commits into from
Closed

Fix type of ServerMemberDeleteEvent#user #730

wants to merge 3 commits into from

Conversation

sarna
Copy link

@sarna sarna commented Jun 21, 2020

Summary

ServerMemberDeleteEvent#user is inherited from ServerMemberEvent - there it says it returns a Member, which is wrong in the case of ServerMemberDeleteEvent: the user is not a Member anymore, they left the server. I tried calling Member methods on it in my bot and was getting confused why they wouldn't work - I think this PR would clear up the confusion for other people.


Added

Documentation for ServerMemberDeleteEvent#user - now it correctly says it returns a User.

Changed

Deprecated

Removed

Fixed

Not a Member anymore - they left the server.
lib/discordrb/events/members.rb Outdated Show resolved Hide resolved
sarna and others added 2 commits June 21, 2020 14:52
Co-authored-by: Matt Carey <matthew.b.carey@gmail.com>
@Daniel-Worrall
Copy link
Contributor

This was merged (with changes) via shardlab/discordrb@6485963 in the new repo and released in v3.4.0 and can be closed.

@sarna sarna closed this Jul 11, 2021
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.

None yet

3 participants