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 NullReferenceException at MESSAGE_CREATE #1268

Merged
merged 1 commit into from
Mar 16, 2019
Merged

Fix NullReferenceException at MESSAGE_CREATE #1268

merged 1 commit into from
Mar 16, 2019

Conversation

SubZero0
Copy link
Member

@SubZero0 SubZero0 commented Feb 19, 2019

After talking at the Discord.Net channel, @Quahu stated the member prop doesn't contain the user in this payload (and it's described as being partial at https://discordapp.com/developers/docs/resources/channel#message-object ).

I completed it using the author prop, that I believe it's the cleanest way of dealing with it (without changing the GuildMember class or the AddOrUpdateUser method).

Fixes #1267

After talking at the Discord.Net channel, @Quahu stated the `member` prop doesn't contain the `user` in this payload (and it's described as being a partial at https://discordapp.com/developers/docs/resources/channel#message-object).

I completed it using the `author` prop, that I believe it's the cleanest way of dealing with it (without changing the GuildMember class or the AddOrUpdateUser method).

Solves #1267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants