v1

latestOpenAPI 3.0.12026-07-17310206.9 KB

Fetches recent messages from a specified Discord channel.

This function retrieves a specified number of messages from a channel's history in Discord. It allows fetching up to a certain limit of messages, defaulting to 10 if not specified. The function returns a Promise that resolves to an array of message objects.

post/fetchMessages

Request body

Response

Successful response

idstring

Unique identifier of the message

contentstring

Content of the message

timestampstring date-time

Timestamp of when the message was sent