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 Snowflake

the channelID all the messages originate from.

limit uint

the number of messages to retrieve.

msgID Snowflake

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

filter MessageFilter

get messages before, around, or after the supplied msgID

Meta