Skip to content

Commit

Permalink
feat (user): add active developer badge to user flags
Browse files Browse the repository at this point in the history
* Active Developer Badge

* Update DiscordKitCore.swift

* Revert "Update DiscordKitCore.swift"

This reverts commit dcd55bb.
  • Loading branch information
PiemanAU committed Dec 21, 2022
1 parent c44b673 commit b141678
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/DiscordKitCommon/Objects/User+Flags.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public extension User {

/// Discord Certified Moderator
public static let certifiedModerator = Flags(rawValue: 1 << 18)

public static let activeDeveloper = Flags(rawValue: 1 << 22)

/// Bot uses only [HTTP interactions](https://discord.com/developers/docs/interactions/receiving-and-responding#receiving-an-interaction) and is shown in the online member list
public static let botHTTPInteractions = Flags(rawValue: 1 << 19)
Expand All @@ -65,7 +67,8 @@ public extension User {
.verifiedBot,
.verifiedDeveloper,
.certifiedModerator,
.botHTTPInteractions
.botHTTPInteractions,
.activeDeveloper
]

// MARK: Hashable
Expand Down

0 comments on commit b141678

Please sign in to comment.