Current section

Files

Jump to
teac lib teac api chat emotes global.ex
Raw

lib/teac/api/chat/emotes/global.ex

defmodule Teac.Api.Chat.Emotes.Global do
alias Teac.Api
@doc """
Gets all global emotes that Twitch has created, which are available across all channels.
## Authorization
Requires an app access token or user access token.
"""
@spec get(Teac.Client.t(), keyword()) :: {:ok, list(map()), Teac.RateLimit.t()} | {:error, Teac.Error.t()}
def get(%Teac.Client{} = client, _opts \\ []) do
[
base_url: Api.uri("chat/emotes/global"),
headers: Api.headers(client)
]
|> Keyword.merge(Application.get_env(:teac, :api_req_options, []))
|> Req.get()
|> Api.handle_response()
end
end