InteractionCallbackData class
Interaction Callback Data structure
Not all message fields are currently supported.
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
-
InteractionCallbackData({bool? tts, String? content, List<
Embed> ? embeds, AllowedMentions? allowedMentions, List<MessageFlag> ? flags, List<Component> ? components, List<Attachment> ? attachments, List<ApplicationCommandOptionChoice> ? choices}) - Constructor
-
InteractionCallbackData.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
- allowedMentions → AllowedMentions?
-
allowed mentions object
final
-
attachments
→ List<
Attachment> ? -
attachment objects with filename and description
final
-
choices
→ List<
ApplicationCommandOptionChoice> ? -
autocomplete choices (max of 25 choices)
final
-
components
→ List<
Component> ? -
message components
final
- content → String?
-
message content
final
-
embeds
→ List<
Embed> ? -
supports up to 10 embeds
final
-
flags
→ List<
MessageFlag> ? -
interaction callback data flags
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tts → bool?
-
is the response TTS
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