Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions discord/auto_moderation.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ const (
)

type AutoModerationTriggerMetadata struct {
KeywordFilter []string `json:"keyword_filter"`
RegexPatterns []string `json:"regex_patterns"`
Presets []AutoModerationKeywordPreset `json:"presets"`
AllowList []string `json:"allow_list"`
MentionTotalLimit int `json:"mention_total_limit"`
KeywordFilter []string `json:"keyword_filter"`
RegexPatterns []string `json:"regex_patterns"`
Presets []AutoModerationKeywordPreset `json:"presets"`
AllowList []string `json:"allow_list"`
MentionTotalLimit int `json:"mention_total_limit"`
MentionRaidProtectionEnabled bool `json:"mention_raid_protection_enabled"`
}

type AutoModerationKeywordPreset int
Expand Down
3 changes: 3 additions & 0 deletions discord/guild.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ const (
GuildFeatureNews GuildFeature = "NEWS"
GuildFeaturePartnered GuildFeature = "PARTNERED"
GuildFeaturePreviewEnabled GuildFeature = "PREVIEW_ENABLED"
GuildFeatureRaidAlertsDisabled GuildFeature = "RAID_ALERTS_DISABLED"
GuildFeatureRoleIcons GuildFeature = "ROLE_ICONS"
GuildFeatureTicketedEventsEnabled GuildFeature = "TICKETED_EVENTS_ENABLED"
GuildFeatureVanityURL GuildFeature = "VANITY_URL"
Expand Down Expand Up @@ -168,6 +169,7 @@ type Guild struct {
NSFWLevel NSFWLevel `json:"nsfw_level"`
BoostProgressBarEnabled bool `json:"premium_progress_bar_enabled"`
JoinedAt time.Time `json:"joined_at"`
SafetyAlertsChannelID *snowflake.ID `json:"safety_alerts_channel_id"`

// only over GET /guilds/{guild.id}
ApproximateMemberCount int `json:"approximate_member_count"`
Expand Down Expand Up @@ -332,6 +334,7 @@ type GuildUpdate struct {
SystemChannelFlags *SystemChannelFlags `json:"system_channel_flags,omitempty"`
RulesChannelID *snowflake.ID `json:"rules_channel_id,omitempty"`
PublicUpdatesChannelID *snowflake.ID `json:"public_updates_channel_id,omitempty"`
SafetyAlertsChannelID *snowflake.ID `json:"safety_alerts_channel_id,omitempty"`
PreferredLocale *string `json:"preferred_locale,omitempty"`
Features *[]GuildFeature `json:"features,omitempty"`
Description *string `json:"description,omitempty"`
Expand Down