Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit e741fc2

Browse files
zekroTJAzekroFedorLap2006
authored
Complement GuildParams struct to comply with Discord's API (bwmarrin#1255)
* complement `GuildParams` struct [fix bwmarrin#994] * fix: naming and spelling * fix: gofmt * refactor: use Locale type for PreferredLocale Co-authored-by: zekro <[email protected]> Co-authored-by: Fedor Lapshin <[email protected]>
1 parent 9effc92 commit e741fc2

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

structs.go

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,8 +1063,10 @@ type SystemChannelFlag int
10631063

10641064
// Block containing known SystemChannelFlag values
10651065
const (
1066-
SystemChannelFlagsSuppressJoin SystemChannelFlag = 1 << 0
1067-
SystemChannelFlagsSuppressPremium SystemChannelFlag = 1 << 1
1066+
SystemChannelFlagsSuppressJoinNotifications SystemChannelFlag = 1 << 0
1067+
SystemChannelFlagsSuppressPremium SystemChannelFlag = 1 << 1
1068+
SystemChannelFlagsSupressGuildReminderNotifications SystemChannelFlag = 1 << 2
1069+
SystemChannelFlagsSupressJoinNotificationReplies SystemChannelFlag = 1 << 3
10681070
)
10691071

10701072
// IconURL returns a URL to the guild's icon.
@@ -1132,12 +1134,22 @@ type GuildParams struct {
11321134
Region string `json:"region,omitempty"`
11331135
VerificationLevel *VerificationLevel `json:"verification_level,omitempty"`
11341136
DefaultMessageNotifications int `json:"default_message_notifications,omitempty"` // TODO: Separate type?
1137+
ExplicitContentFilter int `json:"explicit_content_filter,omitempty"`
11351138
AfkChannelID string `json:"afk_channel_id,omitempty"`
11361139
AfkTimeout int `json:"afk_timeout,omitempty"`
11371140
Icon string `json:"icon,omitempty"`
11381141
OwnerID string `json:"owner_id,omitempty"`
11391142
Splash string `json:"splash,omitempty"`
1143+
DiscoverySplash string `json:"discovery_splash,omitempty"`
11401144
Banner string `json:"banner,omitempty"`
1145+
SystemChannelID string `json:"system_channel_id,omitempty"`
1146+
SystemChannelFlags SystemChannelFlag `json:"system_channel_flags,omitempty"`
1147+
RulesChannelID string `json:"rules_channel_id,omitempty"`
1148+
PublicUpdatesChannelID string `json:"public_updates_channel_id,omitempty"`
1149+
PreferredLocale Locale `json:"preferred_locale,omitempty"`
1150+
Features []GuildFeature `json:"features,omitempty"`
1151+
Description string `json:"description,omitempty"`
1152+
PremiumProgressBarEnabled bool `json:"premium_progress_bar_enabled,omitempty"`
11411153
}
11421154

11431155
// A Role stores information about Discord guild member roles.

0 commit comments

Comments
 (0)