Discord Bot icon

Discord Bot

Send messages and manage slash commands for Discord bots

Fetch Message History

AI-generated

Summary

Fetches recent messages from a Discord channel, optionally using message IDs to page before or after a position. Choose a channel and set the retrieval limit to use the result in downstream workflow steps.

Inputs

  • Guild Names or IDs — Optional guild selection used to load available channels; defaults to none.
  • Channel Name or ID (required) — Channel to fetch messages from. Select a listed channel or provide its ID.
  • Limit — Number of messages to retrieve, from 1 to 100; defaults to 50.
  • Before Message ID — Return messages posted before this message ID, for pagination.
  • After Message ID — Return messages posted after this message ID, for pagination.

Output shape

A list of retrieved Discord messages.

The operation-scoped properties and source signature view do not expose the exact output envelope or runtime pagination behavior.

Examples

Example 1: Fetch the latest 50 messages in a channel

Select a channel and leave the limit at its default.

Links

Discussion