IMessageAuthor class Null safety
Could be either User
, Member
or Webhook
.
Webhook
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-only, inherited
- discriminator → int
-
User Discriminator. -1 if webhook
read-only
- hashCode → int
-
The hash code for this object.
read-only, inherited
- id → Snowflake
-
ID of entity as Snowflake
final, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- tag → String
-
User tag:
l7ssha#6712
read-only - username → String
-
User name
read-only
Methods
-
avatarURL(
{String format = "webp", int size = 128}) → String - Url to user avatar
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
inherited