Google Workspace Add-ons v1 API - Class AppCommand (2.6.0)

public sealed class AppCommand : IMessage<AppCommand>, IEquatable<AppCommand>, IDeepCloneable<AppCommand>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Workspace Add-ons v1 API class AppCommand.

Configuration for an app command.

Inheritance

object > AppCommand

Namespace

Google.Cloud.GSuiteAddOns.V1

Assembly

Google.Cloud.GSuiteAddOns.V1.dll

Constructors

AppCommand()

public AppCommand()

AppCommand(AppCommand)

public AppCommand(AppCommand other)
Parameter
Name Description
other AppCommand

Properties

Command

public string Command { get; set; }

Optional. The name of the command. Required for SLASH_COMMAND, do not set for other command types. Must start with a "/", e.g., "/command".

Property Value
Type Description
string

CommandId

public int CommandId { get; set; }

Required. The ID of the command (1-1000). Must be unique within the app.

Property Value
Type Description
int

CommandType

public AppCommand.Types.CommandType CommandType { get; set; }

Required. The type of this command.

Property Value
Type Description
AppCommandTypesCommandType

Description

public string Description { get; set; }

Required. A short description of the command.

Property Value
Type Description
string

DialogEnabled

public bool DialogEnabled { get; set; }

Optional. Whether this command should trigger a dialog. Defaults to false, if not specified.

Property Value
Type Description
bool

DisplayName

public string DisplayName { get; set; }

Optional. The user-friendly display name of the command. Required for MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.

Property Value
Type Description
string

LoadingNotificationMessage

public string LoadingNotificationMessage { get; set; }

Optional. A notification to be sent to the user when they trigger the message action. Only supported for MESSAGE_ACTION commands.

Property Value
Type Description
string