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:
parent
9e83b0ef90
commit
eb1d5817db
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue