IClientUser class Null safety
ClientUser is bot's discord account. Allows to change bot's presence.
- Implemented types
Constructors
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 / writeinherited
-
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
- 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
, ordnd
.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}) → String -
The user's avatar, represented as URL.
In case if user does not have avatar, default discord avatar will be returned;
format
,size
andanimated
will no longer affectng this URL. Ifanimated
is set astrue
, if available, the url will be a gif, otherwise theformat
.inherited -
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 non-existent 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