InteractionData class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

InteractionData({String? id, String? name, ApplicationCommandType? type, ResolvedData? resolved, List<ApplicationCommandInteractionDataOption>? options, String? customId, ComponentType? componentType, List<String>? values, String? targetId})
Create a new InteractionData
InteractionData.fromJson(Map<String, dynamic> json)
From json
factory

Properties

componentType ComponentType?
the type of the component
final
customId String?
the custom_id of the component
final
hashCode int
The hash code for this object.
no setterinherited
id String?
the ID of the invoked command
final
name String?
the name of the invoked command
final
options List<ApplicationCommandInteractionDataOption>?
the params + values from the user
final
resolved ResolvedData?
converted users + roles + channels
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetId String?
id the of user or message targetted by a user or message command
final
type ApplicationCommandType?
the type of the invoked command
final
values List<String>?
the values the user selected
final

Methods

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

Operators

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