RestCord logo RestCord

getChannelMessages

$client->channel->getChannelMessages($parameters);

Description

If operating on a guild channel, this endpoint requires the 'READ_MESSAGES' permission to be present on the current user.

Parameters

Name Type Required Default
channel.id snowflake true null
around snowflake false null
before snowflake false null
after snowflake false null
limit integer false 50

Response

Returns the messages for a channel.