getChannelMessages
$client->channel->getChannelMessages($parameters);
Description
If operating on a guild channel, this endpoint requires the VIEW_CHANNEL permission to be present on the current user. If the current user is missing the 'READ_MESSAGE_HISTORY' permission in the channel then this will return no messages (since they cannot read the message history).
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.
Can Return:
- message