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

Methods

avatarURL({String format = "webp", int size = 128}) String
Url to user avatar
inherited
bannerUrl({String? format, int? size}) 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