class Google::Apis::ChatV1::SlashCommandMetadata
Annotation
metadata for slash commands (/).
Attributes
bot[RW]
A user in Google
Chat. Corresponds to the JSON property `bot` @return [Google::Apis::ChatV1::User]
command_id[RW]
The command id of the invoked slash command. Corresponds to the JSON property `commandId` @return [Fixnum]
command_name[RW]
The name of the invoked slash command. Corresponds to the JSON property `commandName` @return [String]
triggers_dialog[RW]
Indicating whether the slash command is for a dialog. Corresponds to the JSON property `triggersDialog` @return [Boolean]
triggers_dialog?[RW]
Indicating whether the slash command is for a dialog. Corresponds to the JSON property `triggersDialog` @return [Boolean]
type[RW]
The type of slash command. Corresponds to the JSON property `type` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 2600 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 2605 def update!(**args) @bot = args[:bot] if args.key?(:bot) @command_id = args[:command_id] if args.key?(:command_id) @command_name = args[:command_name] if args.key?(:command_name) @triggers_dialog = args[:triggers_dialog] if args.key?(:triggers_dialog) @type = args[:type] if args.key?(:type) end