User class
Represents a single user of Discord, either a human or a bot, outside of any specific guild's context.
- Inheritance
-
- Object
- SnowflakeEntity
- User
- Implemented types
- Mixed in types
- Implementers
Properties
- accentColor ↔ DiscordColor?
-
Color of the banner
latefinal
- avatar ↔ String?
-
The user's avatar hash.
latefinal
-
Hash of user banner
latefinal
- bot ↔ bool
-
Whether the user belongs to an OAuth2 application
latefinaloverride-getter
- client → INyxx
-
Reference to client
final
- createdAt → DateTime
-
Gets creation timestamp included in Snowflake
no setterinherited
- discriminator ↔ int
-
The user's discriminator.
latefinaloverride-getter
-
dmChannel
→ FutureOr<
DMChannel> -
Gets the
DMChannel
for the user.no setter - formattedDiscriminator → String
-
Formatted discriminator with leading zeros if needed
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Snowflake
-
ID of entity as Snowflake
finalinherited
- mention → String
-
The string to mention the user.
no setteroverride
- nitroType ↔ NitroType?
-
Premium types denote the level of premium a user has.
latefinal
- presence ↔ Activity?
-
The member's presence.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ ClientStatus?
-
The member's status.
offline
,online
,idle
, ordnd
.getter/setter pair - system ↔ bool
-
Whether the user is an Official Discord System user (part of the urgent message system)
latefinal
- tag → String
-
Returns String with username#discriminator
no setteroverride
- userFlags ↔ UserFlags?
-
Additional flags associated with user account. Describes if user has certain
features like joined into one of houses or is discord employee.
latefinal
- username ↔ String
-
The user's username.
latefinaloverride-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 nonexistent method or property is accessed.
inherited
-
sendMessage(
MessageBuilder builder) → Future< Message> -
Sends a message to user.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
inherited