Command class abstract

Command

Properties:

  • id - The ID of the slash command
  • token - The token which is used to verify the source of the payload
  • createAt - The time in milliseconds the command was created
  • updateAt - The time in milliseconds the command was last updated
  • deleteAt - The time in milliseconds the command was deleted, 0 if never deleted
  • creatorId - The user id for the commands creator
  • teamId - The team id for which this command is configured
  • trigger - The string that triggers this command
  • method - Is the trigger done with HTTP Get ('G') or HTTP Post ('P')
  • username - What is the username for the response post
  • iconUrl - The url to find the icon for this users avatar
  • autoComplete - Use auto complete for this command
  • autoCompleteDesc - The description for this command shown when selecting the command
  • autoCompleteHint - The hint for this command
  • displayName - Display name for the command
  • description - Description for this command
  • url - The URL that is triggered

Constructors

Command([void updates(CommandBuilder b)])
factory

Properties

autoComplete bool?
Use auto complete for this command
no setter
autoCompleteDesc String?
The description for this command shown when selecting the command
no setter
autoCompleteHint String?
The hint for this command
no setter
createAt int?
The time in milliseconds the command was created
no setter
creatorId String?
The user id for the commands creator
no setter
deleteAt int?
The time in milliseconds the command was deleted, 0 if never deleted
no setter
description String?
Description for this command
no setter
displayName String?
Display name for the command
no setter
hashCode int
The hash code for this object.
no setterinherited
iconUrl String?
The url to find the icon for this users avatar
no setter
id String?
The ID of the slash command
no setter
method String?
Is the trigger done with HTTP Get ('G') or HTTP Post ('P')
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
teamId String?
The team id for which this command is configured
no setter
token String?
The token which is used to verify the source of the payload
no setter
trigger String?
The string that triggers this command
no setter
updateAt int?
The time in milliseconds the command was last updated
no setter
url String?
The URL that is triggered
no setter
username String?
What is the username for the response post
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(CommandBuilder)) Command
Rebuilds the instance.
inherited
toBuilder() CommandBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

serializer → Serializer<Command>
no setter