|
@@ -150,7 +150,7 @@ type Integration struct {
|
|
|
ExpireGracePeriod int `json:"expire_grace_period"`
|
|
|
User *User `json:"user"`
|
|
|
Account IntegrationAccount `json:"account"`
|
|
|
- SyncedAt Timestamp `json:"synced_at"`
|
|
|
+ SyncedAt time.Time `json:"synced_at"`
|
|
|
}
|
|
|
|
|
|
// ExpireBehavior of Integration
|
|
@@ -197,7 +197,7 @@ type Invite struct {
|
|
|
Channel *Channel `json:"channel"`
|
|
|
Inviter *User `json:"inviter"`
|
|
|
Code string `json:"code"`
|
|
|
- CreatedAt Timestamp `json:"created_at"`
|
|
|
+ CreatedAt time.Time `json:"created_at"`
|
|
|
MaxAge int `json:"max_age"`
|
|
|
Uses int `json:"uses"`
|
|
|
MaxUses int `json:"max_uses"`
|
|
@@ -258,8 +258,8 @@ type Channel struct {
|
|
|
LastMessageID string `json:"last_message_id"`
|
|
|
|
|
|
// The timestamp of the last pinned message in the channel.
|
|
|
- // Empty if the channel has no pinned messages.
|
|
|
- LastPinTimestamp Timestamp `json:"last_pin_timestamp"`
|
|
|
+ // nil if the channel has no pinned messages.
|
|
|
+ LastPinTimestamp *time.Time `json:"last_pin_timestamp"`
|
|
|
|
|
|
// Whether the channel is marked as NSFW.
|
|
|
NSFW bool `json:"nsfw"`
|
|
@@ -453,7 +453,7 @@ type Guild struct {
|
|
|
// The time at which the current user joined the guild.
|
|
|
// This field is only present in GUILD_CREATE events and websocket
|
|
|
// update events, and thus is only present in state-cached guilds.
|
|
|
- JoinedAt Timestamp `json:"joined_at"`
|
|
|
+ JoinedAt time.Time `json:"joined_at"`
|
|
|
|
|
|
// The hash of the guild's discovery splash.
|
|
|
DiscoverySplash string `json:"discovery_splash"`
|
|
@@ -782,8 +782,8 @@ type Member struct {
|
|
|
// The guild ID on which the member exists.
|
|
|
GuildID string `json:"guild_id"`
|
|
|
|
|
|
- // The time at which the member joined the guild, in ISO8601.
|
|
|
- JoinedAt Timestamp `json:"joined_at"`
|
|
|
+ // The time at which the member joined the guild.
|
|
|
+ JoinedAt time.Time `json:"joined_at"`
|
|
|
|
|
|
// The nickname of the member, if they have one.
|
|
|
Nick string `json:"nick"`
|
|
@@ -801,7 +801,7 @@ type Member struct {
|
|
|
Roles []string `json:"roles"`
|
|
|
|
|
|
// When the user used their Nitro boost on the server
|
|
|
- PremiumSince Timestamp `json:"premium_since"`
|
|
|
+ PremiumSince *time.Time `json:"premium_since"`
|
|
|
|
|
|
// Is true while the member hasn't accepted the membership screen.
|
|
|
Pending bool `json:"pending"`
|