Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::SlashCommandMetadata.
Annotation metadata for slash commands (/).
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#bot
def bot() -> ::Google::Apps::Chat::V1::User
Returns
- (::Google::Apps::Chat::V1::User) — The Chat app whose command was invoked.
#bot=
def bot=(value) -> ::Google::Apps::Chat::V1::User
Parameter
- value (::Google::Apps::Chat::V1::User) — The Chat app whose command was invoked.
Returns
- (::Google::Apps::Chat::V1::User) — The Chat app whose command was invoked.
#command_id
def command_id() -> ::Integer
Returns
- (::Integer) — The command ID of the invoked slash command.
#command_id=
def command_id=(value) -> ::Integer
Parameter
- value (::Integer) — The command ID of the invoked slash command.
Returns
- (::Integer) — The command ID of the invoked slash command.
#command_name
def command_name() -> ::String
Returns
- (::String) — The name of the invoked slash command.
#command_name=
def command_name=(value) -> ::String
Parameter
- value (::String) — The name of the invoked slash command.
Returns
- (::String) — The name of the invoked slash command.
#triggers_dialog
def triggers_dialog() -> ::Boolean
Returns
- (::Boolean) — Indicates whether the slash command is for a dialog.
#triggers_dialog=
def triggers_dialog=(value) -> ::Boolean
Parameter
- value (::Boolean) — Indicates whether the slash command is for a dialog.
Returns
- (::Boolean) — Indicates whether the slash command is for a dialog.
#type
def type() -> ::Google::Apps::Chat::V1::SlashCommandMetadata::Type
Returns
- (::Google::Apps::Chat::V1::SlashCommandMetadata::Type) — The type of slash command.
#type=
def type=(value) -> ::Google::Apps::Chat::V1::SlashCommandMetadata::Type
Parameter
- value (::Google::Apps::Chat::V1::SlashCommandMetadata::Type) — The type of slash command.
Returns
- (::Google::Apps::Chat::V1::SlashCommandMetadata::Type) — The type of slash command.