Skip to content

Commit

Permalink
Fix MessageStickerType constructor initialization deadlock (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Aug 16, 2022
1 parent dee56d2 commit bebfcc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/src/main/kotlin/entity/DiscordMessage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ public sealed class MessageStickerType(public val value: Int) {
public object LOTTIE : MessageStickerType(3)

public companion object {
public val values: Set<MessageStickerType> = setOf(PNG, APNG, LOTTIE)
public val values: Set<MessageStickerType>
get() = setOf(PNG, APNG, LOTTIE)
}

internal object Serializer : KSerializer<MessageStickerType> {
Expand Down

0 comments on commit bebfcc7

Please sign in to comment.