ApplicationCommand class
Constructors
-
ApplicationCommand({required String id, required String applicationId, required String name, required String description, List<
ApplicationCommandOption> ? options, String? guildId})
Properties
- applicationId → String
-
final
- description → String
-
final
- guildId → String?
-
Only present in APPLICATION_COMMAND_CREATE
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- name → String
-
final
-
options
→ List<
ApplicationCommandOption> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → ApplicationCommand