View Source GoogleApi.Chat.V1.Model.SlashCommandMetadata (google_api_chat v0.34.3)

Annotation metadata for slash commands (/).

Attributes

  • bot (type: GoogleApi.Chat.V1.Model.User.t, default: nil) - The Chat app whose command was invoked.
  • commandId (type: String.t, default: nil) - The command ID of the invoked slash command.
  • commandName (type: String.t, default: nil) - The name of the invoked slash command.
  • triggersDialog (type: boolean(), default: nil) - Indicates whether the slash command is for a dialog.
  • type (type: String.t, default: nil) - The type of slash command.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.SlashCommandMetadata{
  bot: GoogleApi.Chat.V1.Model.User.t() | nil,
  commandId: String.t() | nil,
  commandName: String.t() | nil,
  triggersDialog: boolean() | nil,
  type: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.