Channel
NAME
API::Discord::Channel - Represents a channel or DM
DESCRIPTION
Represents a channel in a guild, or a pseudo-channel used for direct messages.
See also API::Discord::Messages.
CONSTANTS
API::Discord::Channel::ChannelType
Contains values for the type
property
guild-text dm guild-voice group-dm guild-category
MESSAGES
Messages are handled differently from many other things in this API because they are constantly changing. The API will update each channel with messages as they arrive.
The messages are therefore stored in the @.messages
array, the first item of
which will be the most recent message. The array may change at any time, so you
should refer to it directly rather than saving a copy if you want the most
recent facts.
No historical messages are getch at the point of construction; the array will merely track messages as they arrive. Use fetch-messages to append historical messages to the array.