Skip to content

Commit

Permalink
Go back to values(), it will be changed in #766
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann committed Aug 23, 2023
1 parent 4e12b22 commit d21ef52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/commonMain/kotlin/entity/DiscordActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public enum class ActivityFlag(public val value: Int) {
public class ActivityFlags(public val value: Int) {

public val flags: Set<ActivityFlag>
get() = ActivityFlag.entries.filter { (it.value and value) == it.value }.toSet()
get() = ActivityFlag.values().filter { (it.value and value) == it.value }.toSet()

public operator fun contains(flag: ActivityFlag): Boolean = (flag.value and value) == flag.value

Expand Down

0 comments on commit d21ef52

Please sign in to comment.