From 8db14bc2c75d2339674e4612c91c63569fe62601 Mon Sep 17 00:00:00 2001 From: cheesycod Date: Wed, 17 Nov 2021 17:57:12 +0000 Subject: [PATCH 1/3] Add guild NSFW level --- structs.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/structs.go b/structs.go index f91297bea..62a5c26b1 100644 --- a/structs.go +++ b/structs.go @@ -552,6 +552,17 @@ const ( ExplicitContentFilterAllMembers ExplicitContentFilterLevel = 2 ) +// GuikdNSFWLevel type definition +type GuildNSFWLevel int + +// Constants for GuildNsfwLefel 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"` From d7b998bd35a0605d97bc23045e1345fb0dd7195f Mon Sep 17 00:00:00 2001 From: cheesycod Date: Wed, 17 Nov 2021 17:59:06 +0000 Subject: [PATCH 2/3] Fix typo --- structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs.go b/structs.go index 62a5c26b1..d1a5afe27 100644 --- a/structs.go +++ b/structs.go @@ -552,7 +552,7 @@ const ( ExplicitContentFilterAllMembers ExplicitContentFilterLevel = 2 ) -// GuikdNSFWLevel type definition +// GuildNSFWLevel type definition type GuildNSFWLevel int // Constants for GuildNsfwLefel levels from 0 to 3 inclusive From cdbe3aee0141c1074d46e4ec69a25e436a2db28f Mon Sep 17 00:00:00 2001 From: nitroflap Date: Sun, 10 Apr 2022 23:23:54 +0300 Subject: [PATCH 3/3] fix(structs): typo --- structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs.go b/structs.go index d1a5afe27..c2927b5bb 100644 --- a/structs.go +++ b/structs.go @@ -555,7 +555,7 @@ const ( // GuildNSFWLevel type definition type GuildNSFWLevel int -// Constants for GuildNsfwLefel levels from 0 to 3 inclusive +// Constants for GuildNSFWLevel levels from 0 to 3 inclusive const ( GuildNSFWLevelDefault GuildNSFWLevel = 0 GuildNSFWLevelExplicit GuildNSFWLevel = 1