From eb1d5817db693bb5e130fe8456dd82320395785a Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sun, 13 Oct 2024 21:16:44 -0700 Subject: [PATCH] discord: Populate Relationship type with nickname --- discord/user.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/discord/user.go b/discord/user.go index 9d47bf4..51581ff 100644 --- a/discord/user.go +++ b/discord/user.go @@ -3,6 +3,8 @@ package discord import ( "strconv" "time" + + "github.com/diamondburned/arikawa/v3/utils/json/option" ) type User struct { @@ -251,9 +253,11 @@ type ActivitySecrets struct { // A Relationship between the logged in user and the user in the struct. This // struct is undocumented. type Relationship struct { - UserID UserID `json:"id"` - User User `json:"user"` - Type RelationshipType `json:"type"` + UserID UserID `json:"id"` + User User `json:"user"` + Type RelationshipType `json:"type"` + Since Timestamp `json:"since,omitempty"` + Nickname option.String `json:"nickname"` } // RelationshipType is an enum for a relationship.