forked from pothtonswer/discordmuffin
Add guild NSFW level (#1029)
* Add guild NSFW level * Fix typo * fix(structs): typo Co-authored-by: nitroflap <fe.lap.prog@gmail.com>
This commit is contained in:
parent
7e04178d26
commit
064fa164a0
1 changed files with 14 additions and 0 deletions
14
structs.go
14
structs.go
|
@ -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
|
||||
|
||||
|
@ -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"`
|
||||
|
||||
|
|
Loading…
Reference in a new issue