muteUser(sourceUserId_targetUserId_) - daneden/Twift GitHub Wiki

muteUser(sourceUserId:targetUserId:)

Causes the source user to mute the target user. The source user ID must match the currently authenticated user ID.

public func muteUser(sourceUserId: User.ID, targetUserId: User.ID)

Equivalent to POST /2/users/:id/muting

Parameters

  • sourceUserId: The user ID who you would like to initiate the mute on behalf of. It must match the user ID of the currently authenticated user.
  • targetUserId: The user ID of the user you would like the source user to mute.

Returns

A MuteResponse indicating the muted status.