Users

Accept or update friend request

Accepts a pending incoming friend request from a user or updates the relationship type. Can also be used to change friend relationship to blocked status. Returns updated relationship object.

put/users/@me/relationships/{user_id}

Path parameters

user_idstring snowflake required

The ID of the user

Request body

type1 | 2 | 3 | 4

Relationship type

Response

Success

idstring required

The unique identifier for the relationship

type1 | 2 | 3 | 4 required

Relationship type

sincestring date-time

ISO8601 timestamp of when the relationship was established

nicknamestring nullable required

A custom nickname set for the related user

share_voice_activityboolean required

Whether the current user has chosen to share their voice activity with this friend on the Active Now panel

friend_shares_voice_activityboolean required

Whether this friend has chosen to share their voice activity with the current user; for non-friend types this is always true

Changes

Changed in 1 of the 3 revisions of this API.20

    • removed the INVALID_PACK_TYPE enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the INVALID_PACK_TYPE enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the INVALID_PACK_TYPE enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the INVALID_PACK_TYPE enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACKS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACKS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACKS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACKS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACK_EXPRESSIONS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACK_EXPRESSIONS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACK_EXPRESSIONS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACK_EXPRESSIONS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the PACK_ACCESS_DENIED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the PACK_ACCESS_DENIED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the PACK_ACCESS_DENIED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the PACK_ACCESS_DENIED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the UNKNOWN_PACK enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the UNKNOWN_PACK enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the UNKNOWN_PACK enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the UNKNOWN_PACK enum value from the response property for the response status

      response-property-enum-value-removed

    This revision also has 17 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog