MessageChannel
- class MessageChannel
A lightweight handle for the channel attached to a message. Sending through this handle does not fetch the full channel first.
Properties
Property
Type
Description
idChannel ID.
Methods
- async MessageChannel.fetch() Promise<TextChannel>
Fetch the full channel object when channel metadata or specialized channel methods are needed.
-
async MessageChannel.send(content: string |
SendMessageOptions) Promise<Message> Send a message to this channel.
- Parameters:
content: Message body or full send options.
- Returns:
The newly sent message.