Interaction class
Constructors
- Interaction({required int clientIndex, required String id, required InteractionType type, ApplicationCommandInteractionData? data, String? guildId, String? channelId, GuildMember? member, User? user, required String token, required int version})
Properties
- channelId → String?
-
final
- data → ApplicationCommandInteractionData?
-
Always present in type 2
final
- guildId → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- member → GuildMember?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String
-
final
- type → InteractionType
-
final
- user → User?
-
final
- version → int
-
final
Methods
-
callback(
{required InteractionResponseType type, InteractionApplicationCommandCallbackData? data}) → Future -
editResponse(
{required InteractionApplicationCommandCallbackData data}) → Future -
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(
int clientIndex, Map< String, dynamic> json) → Interaction