IMessageAuthor class abstract
Could be either IUser, IMember or IWebhook. IWebhook will have most of field missing.
- Implemented types
- Implementers
Constructors
Properties
- bot → bool
-
True if bot or webhook
read-only
- createdAt → DateTime
-
Gets creation timestamp included in Snowflake
read-onlyinherited
- discriminator → int
-
User Discriminator. -1 if webhook
read-only
- formattedDiscriminator → String
-
Formatted discriminator with leading zeros if needed
read-only
- 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-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- tag → String
-
User tag:
l7ssha#6712
read-only - username → String
-
User name
read-only
Methods
-
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
andanimated
will no longer affectng this URL. Ifanimated
is set astrue
, if available, the url will be a gif, otherwise theformat
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
inherited