TwitchApi.Moderation.AddChannelModerator (TwitchApi v0.1.3) View Source

⛔ This module is autogenerated please do not modify manually.

Example request from twitch api docs:

descriptions:

Adds a moderator to the broadcaster’s chat room.

requests:

curl -X POST 'https://api.twitch.tv/helix/moderation/moderators?broadcaster_id=11111&user_id=44444'
-H'Authorization: Bearer kpvy3cjboyptmdkiacwr0c19hotn5s'
-H'Client-Id: hof5gwx0su6owfnys0nyan9c87zr6t'

Example response from twitch api docs:

descriptions:

responses:

Link to this section Summary

Types

The ID of the broadcaster that owns the chat room.

The ID of the user to add as a moderator in the broadcaster’s chat room.

Functions

Description:

NEW Adds a moderator to the broadcaster’s chat room.

Link to this section Types

Specs

broadcaster_id() :: %{broadcaster_id: String.t()}

The ID of the broadcaster that owns the chat room.

Specs

user_id() :: %{user_id: String.t()}

The ID of the user to add as a moderator in the broadcaster’s chat room.

Link to this section Functions

Specs

call(broadcaster_id() | user_id()) ::
  {:ok, Finch.Response.t()} | {:error, Exception.t()}

Description:

NEW Adds a moderator to the broadcaster’s chat room.

Required authentication:

Required authorization:

Requires a user access token that includes the channel:manage:moderators scope. The ID in the broadcaster_id query parameter must match the user ID in the access token.