ExStreamClient.Operations.Chat.Commands (ExStreamClient v0.1.7)
View SourceModules for interacting with the chat/commands
group of Stream APIs
API Reference: https://getstream.github.io/protocol/?urls.primaryName=Chat%20v2
Shared options
All functions in this module accept the following optional parameters:
api_key
- API key to use. If not provided, the default key from config will be usedapi_key_secret
- API key secret to use. If not provided, the default secret from config will be usedendpoint
- endpoint to use. If not provided, the default endpoint from config will be usedclient
- HTTP client to use. Must implementExStreamClient.Http.Behavior
. Defaults toExStreamClient.Http
req_opts
- all of these options will be forwarded to req. SeeReq.new/1
for available options
Summary
Functions
Creates custom chat command
Deletes custom chat command
Returns custom command by its name
Returns all custom commands
Updates custom chat command
Types
Functions
@spec create_command(ExStreamClient.Model.CreateCommandRequest.t(), shared_opts()) :: {:ok, ExStreamClient.Model.CreateCommandResponse.t()} | {:error, any()}
Creates custom chat command
Required Arguments:
Optional Arguments:
- All options from Shared Options are supported.
@spec delete_command(String.t(), shared_opts()) :: {:ok, ExStreamClient.Model.DeleteCommandResponse.t()} | {:error, any()}
Deletes custom chat command
Required Arguments:
name
Optional Arguments:
- All options from Shared Options are supported.
@spec get_command(String.t(), shared_opts()) :: {:ok, ExStreamClient.Model.GetCommandResponse.t()} | {:error, any()}
Returns custom command by its name
Required Arguments:
name
Optional Arguments:
- All options from Shared Options are supported.
@spec list_commands(shared_opts()) :: {:ok, ExStreamClient.Model.ListCommandsResponse.t()} | {:error, any()}
Returns all custom commands
Optional Arguments:
- All options from Shared Options are supported.
@spec update_command( String.t(), ExStreamClient.Model.UpdateCommandRequest.t(), shared_opts() ) :: {:ok, ExStreamClient.Model.UpdateCommandResponse.t()} | {:error, any()}
Updates custom chat command
Required Arguments:
name
payload
:Elixir.ExStreamClient.Model.UpdateCommandRequest
Optional Arguments:
- All options from Shared Options are supported.