PartialMessage class
A partial Message object.
- Inheritance
-
- Object
- SnowflakeEntity<
Message> - ManagedSnowflakeEntity<
Message> - WritableSnowflakeEntity<
Message> - PartialMessage
- Implementers
Properties
- channel → PartialTextChannel
-
The channel this message was sent in.
no setter
- channelId → Snowflake
-
The ID of the Channel the message was sent in.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Snowflake
-
The id of this entity.
finalinherited
- manager → MessageManager
-
The manager for this entity.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
crosspost(
) → Future< void> - Crosspost this message to all channels following the channel this message was sent in.
-
defaultToString(
) → String -
Same as toString, but only called when dart:mirrors is not available.
inherited
-
delete(
) → Future< void> -
Delete this entity.
inherited
-
deleteAllReactions(
) → Future< void> - Deletes all reactions on this message.
-
deleteOwnReaction(
ReactionBuilder emoji) → Future< void> - Deletes reaction the current user has made on this message.
-
deleteReaction(
ReactionBuilder emoji, {Snowflake? userId}) → Future< void> -
Deletes a reaction by a user, if specified on this message.
Otherwise deletes reactions by
emoji
. -
edit(
MessageUpdateBuilder builder) → Future< Message> - Update this message.
-
fetch(
) → Future< Message> -
Fetch this entity from the API.
inherited
-
fetchReactions(
ReactionBuilder emoji, {Snowflake? after, int? limit}) → Future< List< User> > - Get a list of users that reacted with a given emoji on a message.
-
get(
) → Future< Message> -
If this entity exists in the manager's cache, return the cached instance. Otherwise, fetch
this entity and return it.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pin(
{String? auditLogReason}) → Future< void> - Pin this message.
-
react(
ReactionBuilder emoji) → Future< void> - Creates a reaction on this message.
-
toString(
) → String -
A string representation of this object.
inherited
-
unpin(
{String? auditLogReason}) → Future< void> - Unpin this message.
-
update(
covariant UpdateBuilder< Message> builder) → Future<Message> -
Update this entity using the provided builder and return the updated entity.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited