IMessageAuthor class abstract

Could be either IUser, IMember or IWebhook. IWebhook will have most of field missing.

Implemented types
Implementers

Constructors

IMessageAuthor()

Properties

bot bool
True if bot or webhook
no setter
createdAt DateTime
Gets creation timestamp included in Snowflake
no setterinherited
discriminator int
User Discriminator. -1 if webhook
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
isInteractionWebhook bool
Whether this IMessageAuthor is a webhook received by an interaction.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String
User tag: l7ssha#6712
no setter
username String
User name
no setter

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