1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-01 04:24:19 +00:00

discord: Populate Relationship type with nickname

This commit is contained in:
diamondburned 2024-10-13 21:16:44 -07:00
parent 9e83b0ef90
commit eb1d5817db
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -3,6 +3,8 @@ package discord
import ( import (
"strconv" "strconv"
"time" "time"
"github.com/diamondburned/arikawa/v3/utils/json/option"
) )
type User struct { type User struct {
@ -254,6 +256,8 @@ type Relationship struct {
UserID UserID `json:"id"` UserID UserID `json:"id"`
User User `json:"user"` User User `json:"user"`
Type RelationshipType `json:"type"` Type RelationshipType `json:"type"`
Since Timestamp `json:"since,omitempty"`
Nickname option.String `json:"nickname"`
} }
// RelationshipType is an enum for a relationship. // RelationshipType is an enum for a relationship.