Skip to content

Commit

Permalink
discord: Populate Relationship type with nickname
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed Oct 14, 2024
1 parent 9e83b0e commit eb1d581
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions discord/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package discord
import (
"strconv"
"time"

"github.com/diamondburned/arikawa/v3/utils/json/option"
)

type User struct {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit eb1d581

Please sign in to comment.