Message class

Constructors

Message(Client client, {required String id, required User author, required Channel channel, required String nonce, String? content, File? attachment, Server? server})
Message.clone(Message message)
Utility function to duplicate the message object

Properties

attachment File?
The file attached to this message
getter/setter pair
author User
The user who sent this message
getter/setter pair
channel Channel
The Channel this message originated from
getter/setter pair
client Client
The Client that created this message Object
getter/setter pair
content String?
The content of this message
getter/setter pair
deleted bool
Whether the message has been deleted
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
The message's ID
getter/setter pair
nonce String
A string unique to this message. Must be set by the client when sending.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server Server?
The server this message was sent in. Not available if message was sent in Group/DM/SavedMessages channel.
getter/setter pair

Methods

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 ==(Object other) bool
The equality operator.
inherited