ResolvedData class

Resolved Data structure

If data for a Member is included, data for its corresponding User will also be included.

https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

ResolvedData({Map<String, User>? users, Map<String, GuildMember>? members, Map<String, Role>? roles, Map<String, Channel>? channels, Map<String, Message>? messages})
Constructor
ResolvedData.fromJson(Map<String, dynamic> json)
From json
factory

Properties

channels Map<String, Channel>?
the ids and partial Channel objects
final
hashCode int
The hash code for this object.
no setterinherited
members Map<String, GuildMember>?
the ids and partial Member objects
final
messages Map<String, Message>?
the ids and partial Message objects
final
roles Map<String, Role>?
the ids and Role objects
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
users Map<String, User>?
the ids and User objects
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