UserAPI class

Constructors

UserAPI(DiscordHTTPClient _http)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createDM(String recipientId) Future<Channel>
createGroupDM(List<String> accessTokens, Map<String, String> nicks) Future<Channel>
getCurrentUser() Future<User>
getCurrentUserGuilds({String? before, String? after, int? limit}) Future<List<Guild>>
getUserConnections() Future<List<Connection>>
getUserDMs() Future<List<Channel>>
Returns empty array for bots
leaveGuild(String guildId) Future
modifyCurrentUser({String? username, String? avatar = ''}) Future<User>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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