Skip to content

Commit

Permalink
Add guild NSFW level (#1029)
Browse files Browse the repository at this point in the history
* Add guild NSFW level

* Fix typo

* fix(structs): typo

Co-authored-by: nitroflap <fe.lap.prog@gmail.com>
  • Loading branch information
cheesycod and FedorLap2006 committed Apr 10, 2022
1 parent 7e04178 commit 064fa16
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions structs.go
Expand Up @@ -552,6 +552,17 @@ const (
ExplicitContentFilterAllMembers ExplicitContentFilterLevel = 2
)

// GuildNSFWLevel type definition
type GuildNSFWLevel int

// Constants for GuildNSFWLevel levels from 0 to 3 inclusive
const (
GuildNSFWLevelDefault GuildNSFWLevel = 0
GuildNSFWLevelExplicit GuildNSFWLevel = 1
GuildNSFWLevelSafe GuildNSFWLevel = 2
GuildNSFWLevelAgeRestricted GuildNSFWLevel = 3
)

// MfaLevel type definition
type MfaLevel int

Expand Down Expand Up @@ -675,6 +686,9 @@ type Guild struct {
// The explicit content filter level
ExplicitContentFilter ExplicitContentFilterLevel `json:"explicit_content_filter"`

// The NSFW Level of the guild
NSFWLevel GuildNSFWLevel `json:"nsfw_level"`

// The list of enabled guild features
Features []string `json:"features"`

Expand Down

0 comments on commit 064fa16

Please sign in to comment.