IUser class abstract

Implemented types
Implementers

Constructors

IUser()

Properties

accentColor DiscordColor?
Color of the banner
no setter
avatar String?
The user's avatar hash.
no setter
bannerHash String?
Hash of user banner
no setter
bot bool
True if bot or webhook
no setterinherited
client INyxx
Reference to client
no setter
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 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
Mention string of entity
no setterinherited
nitroType NitroType?
Premium types denote the level of premium a user has.
no setter
presence → Activity?
The member's presence.
no setter
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 setter
system bool
Whether the user is an Official Discord System user (part of the urgent message system)
no setter
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 setter
username String
User name
no setterinherited

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.
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