Client.getMessages

Gets an array of messages for a given channel.

class Client
Message[]
getMessages
(
Snowflake channelID
,
uint limit = 100
,
Snowflake msgID = 0
,
MessageFilter filter = MessageFilter.BEFORE
)

Parameters

channelID
Type: Snowflake

the channelID all the messages originate from.

limit
Type: uint

the number of messages to retrieve.

msgID
Type: Snowflake

the message which other messages are selected, with respect to the filter

filter
Type: MessageFilter

get messages before, around, or after the supplied msgID

Meta