Skip to content

Commit

Permalink
add new fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mlnrDev committed Apr 25, 2024
1 parent 51e4337 commit 81b0c27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions discord/guild.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,14 @@ type GuildPreview struct {

type GuildIncidentsData struct {
InvitesDisabledUntil *time.Time `json:"invites_disabled_until"`
DmsDisabledUntil *time.Time `json:"dms_disabled_until"`
DMsDisabledUntil *time.Time `json:"dms_disabled_until"`
DMSpamDetectedAt *time.Time `json:"dm_spam_detected_at"`
RaidDetectedAt *time.Time `json:"raid_detected_at"`
}

type GuildIncidentActionsUpdate struct {
InvitesDisabledUntil *json.Nullable[time.Time] `json:"invites_disabled_until,omitempty"`
DmsDisabledUntil *json.Nullable[time.Time] `json:"dms_disabled_until,omitempty"`
DMsDisabledUntil *json.Nullable[time.Time] `json:"dms_disabled_until,omitempty"`
}

// GuildCreate is the payload used to create a Guild
Expand Down

0 comments on commit 81b0c27

Please sign in to comment.