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

Add guild member flags #760

Merged
merged 2 commits into from
Feb 17, 2023
Merged

Conversation

NoComment1105
Copy link
Contributor

discord/discord-api-docs#5874
I don't think this is everything, let me know if it isn't

@lukellmann
Copy link
Member

2023-02-16T12:09:07.8811675Z GuildTest > GuildMember serialization() FAILED
2023-02-16T12:09:07.8812964Z     kotlinx.serialization.MissingFieldException: Field 'flags' is required for type with serial name 'dev.kord.common.entity.DiscordGuildMember', but it was missing at path: $
2023-02-16T12:09:07.8814057Z         at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:90)
2023-02-16T12:09:07.8815009Z         at kotlinx.serialization.json.Json.decodeFromString(Json.kt:95)
2023-02-16T12:09:07.8815479Z         at json.GuildTest.GuildMember serialization(GuildTest.kt:80)
2023-02-16T12:09:07.8815735Z 
2023-02-16T12:09:07.8815846Z         Caused by:
2023-02-16T12:09:07.8816691Z         kotlinx.serialization.MissingFieldException: Field 'flags' is required for type with serial name 'dev.kord.common.entity.DiscordGuildMember', but it was missing
2023-02-16T12:09:07.8817493Z             at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
2023-02-16T12:09:07.8818160Z             at dev.kord.common.entity.DiscordGuildMember.<init>(Member.kt:10)
2023-02-16T12:09:07.8818687Z             at dev.kord.common.entity.DiscordGuildMember$$serializer.deserialize(Member.kt:10)
2023-02-16T12:09:07.8819214Z             at dev.kord.common.entity.DiscordGuildMember$$serializer.deserialize(Member.kt:10)
2023-02-16T12:09:07.8819919Z             at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:70)
2023-02-16T12:09:07.8820447Z             ... 2 more

@NoComment1105
Copy link
Contributor Author

Fixed tests i think

@HopeBaron HopeBaron merged commit 556f1c8 into kordlib:0.8.x Feb 17, 2023
@NoComment1105 NoComment1105 deleted the guild-member-flags branch March 25, 2023 14:57
lukellmann added a commit that referenced this pull request Sep 2, 2023
lukellmann added a commit that referenced this pull request Sep 2, 2023
lukellmann added a commit that referenced this pull request Sep 2, 2023
lukellmann added a commit that referenced this pull request Sep 2, 2023
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.

3 participants