IClientUser class abstract

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

Implemented types

Constructors

IClientUser()

Properties

accentColor DiscordColor?
Color of the banner
read-onlyinherited
avatar String?
The user's avatar hash.
read-onlyinherited
avatarDecorationHash String?
The hash of the user's avatar decoration.
read-onlyinherited
bannerHash String?
Hash of user banner
read-onlyinherited
bot bool
True if bot or webhook
read-onlyinherited
client INyxx
Reference to client
read-onlyinherited
createdAt DateTime
Gets creation timestamp included in Snowflake
read-onlyinherited
discriminator int
User Discriminator. -1 if webhook
read-onlyinherited
dmChannel FutureOr<IDMChannel>
Gets the DMChannel for the user.
read-onlyinherited
formattedDiscriminator String
Formatted discriminator with leading zeros if needed
read-onlyinherited
globalName String?
The user's display name, if it set.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
id Snowflake
ID of entity as Snowflake
finalinherited
isInteractionWebhook bool
Whether this IMessageAuthor is a webhook received by an interaction.
read-onlyinherited
mention String
Mention string of entity
read-onlyinherited
mfa bool?
Weather or not the client user has MFA enabled.
read-only
nitroType NitroType?
Premium types denote the level of premium a user has.
read-onlyinherited
presence IActivity?
The member's presence.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
status IClientStatus?
The member's status. offline, online, idle, or dnd.
read-onlyinherited
system bool
Whether the user is an Official Discord System user (part of the urgent message system)
read-onlyinherited
tag String
User tag: l7ssha#6712
read-onlyinherited
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-onlyinherited
username String
User name
read-onlyinherited
verified bool?
Weather or not the client user's account is verified.
read-only

Methods

avatarDecorationUrl({int size}) String?
The user's avatar decoration url, if any.
inherited
avatarUrl({String format = 'webp', int? size, bool animated = true}) String
The user's avatar, represented as URL. In case if user does not have avatar, default discord avatar will be returned; format, size and animated will no longer affectng this URL. If animated is set as true, if available, the url will be a gif, otherwise the format.
inherited
bannerUrl({String format = 'webp', int? size, bool animated = true}) String?
The user's banner url.
inherited
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 nonexistent method or property is accessed.
inherited
sendMessage(MessageBuilder builder) Future<IMessage>
Sends message
inherited
toString() String
A string representation of this object.
inherited

Operators

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