TwitchApi.Moderation.ManageHeldAutoModMessages (TwitchApi v0.1.2) View Source

⛔ This module is autogenerated please do not modify manually.

Example request from twitch api docs:

descriptions:

Allow a message being held by AutoMod. Deny a message being held by AutoMod.

requests:

curl -X POST 'https://api.twitch.tv/helix/moderation/automod/message'
-H'Authorization: Bearer cfabdegwdoklmawdzdo98xt2fo512y'
-H'Client-Id: uo6dggojyb8d6soh92zknwmi5ej1q2'
-d'{ "user_id": "9327994", "msg_id": "836013710", "action": "DENY" }' curl -X POST 'https://api.twitch.tv/helix/moderation/automod/message'
-H'Authorization: Bearer cfabdegwdoklmawdzdo98xt2fo512y'
-H'Client-Id: uo6dggojyb8d6soh92zknwmi5ej1q2'
-d'{ "user_id": "9327994", "msg_id": "836013710", "action": "ALLOW" }'

Example response from twitch api docs:

descriptions:

Shows that a message was successfully allowed. Shows that a message was successfully denied.

responses:

204NoContent 204NoContent

Link to this section Summary

Types

Map containing the user needed information for the fetch of the required user OAuth access token. You will be able to choose from one way or the other for fetching previously OAuth access tokens. :user_id field contains the user ID from twitch, e.g. 61425548 or "61425548" :user_name field constains the user name from twitch, e.g. "hiimkamiyuzu"

Functions

Description:

Allow or deny a message that was held for review by AutoMod.

Link to this section Types

Specs

user_info() :: %{user_id: integer() | binary()} | %{user_name: binary()}

Map containing the user needed information for the fetch of the required user OAuth access token. You will be able to choose from one way or the other for fetching previously OAuth access tokens. :user_id field contains the user ID from twitch, e.g. 61425548 or "61425548" :user_name field constains the user name from twitch, e.g. "hiimkamiyuzu"

Link to this section Functions

Link to this function

call(body_params, user_info)

View Source

Specs

call(
  %{action: String.t(), msg_id: String.t(), user_id: String.t()} | nil,
  user_info()
) :: {:ok, Finch.Response.t()} | {:error, Exception.t()}

Description:

Allow or deny a message that was held for review by AutoMod.

Required authentication:

Required authorization:

User OAuth token requiredRequired Scope: moderator:manage:automod Note that the scope allows this endpoint to be used for any channel that the authenticated user is a moderator, including their own channel.