SlashCommandMetadata class

Annotation metadata for slash commands (/).

Constructors

SlashCommandMetadata({User? bot, String? commandId, String? commandName, bool? triggersDialog, String? type})
SlashCommandMetadata.fromJson(Map json_)

Properties

bot User?
The Chat app whose command was invoked.
getter/setter pair
commandId String?
The command ID of the invoked slash command.
getter/setter pair
commandName String?
The name of the invoked slash command.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggersDialog bool?
Indicates whether the slash command is for a dialog.
getter/setter pair
type String?
The type of slash command. Possible string values are:
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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