ApplicationCommandOption class
Constructors
-
ApplicationCommandOption({required ApplicationCommandOptionType type, required String name, required String description, bool? required, List<
ApplicationCommandOptionChoice> ? choices, List<ApplicationCommandOption> ? options})
Properties
-
choices
→ List<
ApplicationCommandOptionChoice> ? -
final
- description → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
final
-
options
→ List<
ApplicationCommandOption> ? -
final
- required → bool?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ApplicationCommandOptionType
-
final
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) → ApplicationCommandOption