Class SlashCommandMetadata
Annotation metadata for slash commands (/).
Implements
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class SlashCommandMetadata : IMessage<SlashCommandMetadata>, IEquatable<SlashCommandMetadata>, IDeepCloneable<SlashCommandMetadata>, IBufferMessage, IMessage
Constructors
SlashCommandMetadata()
Declaration
public SlashCommandMetadata()
SlashCommandMetadata(SlashCommandMetadata)
Declaration
public SlashCommandMetadata(SlashCommandMetadata other)
Parameters
| Type | Name | Description |
|---|---|---|
| SlashCommandMetadata | other |
Properties
Bot
The Chat app whose command was invoked.
Declaration
public User Bot { get; set; }
Property Value
| Type | Description |
|---|---|
| User |
CommandId
The command ID of the invoked slash command.
Declaration
public long CommandId { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
CommandName
The name of the invoked slash command.
Declaration
public string CommandName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TriggersDialog
Indicates whether the slash command is for a dialog.
Declaration
public bool TriggersDialog { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Type
The type of slash command.
Declaration
public SlashCommandMetadata.Types.Type Type { get; set; }
Property Value
| Type | Description |
|---|---|
| SlashCommandMetadata.Types.Type |