IClientUser class Null safety

ClientUser is bot's discord account. Allows to change bot's presence.

Implemented types




accentColor DiscordColor?
Color of the banner
read-only, inherited
avatar String?
The user's avatar hash.
read-only, inherited
bannerHash String?
Hash of user banner
read-only, inherited
bot bool
True if bot or webhook
read-only, inherited
client INyxx
Reference to client
read-only, inherited
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
discriminator int
User Discriminator. -1 if webhook
read-only, inherited
dmChannel FutureOr<IDMChannel>
Gets the DMChannel for the user.
read-only, inherited
formattedDiscriminator String
Formatted discriminator with leading zeros if needed
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
isInteractionWebhook bool
Whether this IMessageAuthor is a webhook received by an interaction.
read-only, inherited
mention String
Mention string of entity
read-only, inherited
mfa bool?
Weather or not the client user has MFA enabled.
nitroType NitroType?
Premium types denote the level of premium a user has.
read-only, inherited
presence → Activity?
The member's presence.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status IClientStatus?
The member's status. offline, online, idle, or dnd.
read-only, inherited
system bool
Whether the user is an Official Discord System user (part of the urgent message system)
read-only, inherited
tag String
User tag: l7ssha#6712
read-only, inherited
userFlags IUserFlags?
Additional flags associated with user account. Describes if user has certain features like joined into one of houses or is discord employee.
read-only, inherited
username String
User name
read-only, inherited
verified bool?
Weather or not the client user's account is verified.


avatarURL({String format = "webp", int size = 128}) String
Url to user avatar
bannerUrl({String? format, int? size}) String?
The user's banner url.
edit({String? username, AttachmentBuilder? avatarAttachment}) Future<IUser>
Edits current user. This changes user's username - not per guild nickname.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
sendMessage(MessageBuilder builder) Future<IMessage>
Sends message
toString() String
A string representation of this object.


operator ==(dynamic other) bool
The equality operator.