User class

Represents a single user of Discord, either a human or a bot, outside of any specific guild's context.

Inheritance
Mixed in types
Implementers

Properties

avatar String
The user's avatar hash.
read / write, final, late
bot bool
Whether the user belongs to an OAuth2 application
read / write, final, late, override-getter
client Nyxx
Reference to Nyxx instance
final
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
discriminator int
The user's discriminator.
read / write, final, late, override-getter
dmChannel Future<DMChannel>
Gets the DMChannel for the user.
read-only
formattedDiscriminator String
Formatted discriminator with leading zeros if needed
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
mention String
The string to mention the user.
read-only, override
nitroType NitroType
Premium types denote the level of premium a user has.
read / write
presence Activity
The member's presence.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status ClientStatus
The member's status. offline, online, idle, or dnd.
read / write
system bool
Whether the user is an Official Discord System user (part of the urgent message system)
read / write, final, late
tag String
Returns String with username#discriminator
read-only, override
userFlags UserFlags
Additional flags associated with user account. Describes if user has certain features like joined into one of houses or is discord employee.
read / write
username String
The user's username.
read / write, final, late, override-getter

Methods

avatarURL({String format: "webp", int size: 128}) String
The user's avatar, represented as URL. In case if user does not have avatar, default discord avatar will be returned with specified size and png format.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
send({dynamic content, List<AttachmentBuilder> files, EmbedBuilder embed, bool tts, AllowedMentions allowedMentions, MessageBuilder builder}) Future<Message>
Sends a message to user.
override
toString() String
Returns a mention of user
override

Operators

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