Skip to content

Commit

Permalink
docs(Poll.Expiry): add a note about null value
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Jun 21, 2024
1 parent 4bcb601 commit a03b6b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2346,7 +2346,8 @@ type Poll struct {
// NOTE: available only when fetching.

Results *PollResults `json:"results,omitempty"`
Expiry *time.Time `json:"expiry,omitempty"`
// NOTE: as Discord documentation notes, this field might be null even when fetching.
Expiry *time.Time `json:"expiry,omitempty"`
}

// Constants for the different bit offsets of text channel permissions
Expand Down

0 comments on commit a03b6b7

Please sign in to comment.