Discord Action (Lisboa) icon

Discord Action (Lisboa)

Send messages, manage channels, and create events via Discord API v10

Get Messages

AI-generated

Summary

Fetches recent messages from a Discord channel using the bot credentials. Returns one n8n item per message, with its ID, content, author details, timestamp, channel ID, and attachments.

Inputs

  • Channel ID (required) — Discord channel ID to fetch messages from.
  • Limit — Maximum number of messages to fetch; defaults to 10 and supports values from 1 to 100.
  • Before Message ID — Fetch messages before this message ID for pagination; defaults to empty.

Output shape

A list of items, one per fetched message.

Each item contains id, content, authorId, authorUsername, timestamp, channelId, and attachments. With no messages, the operation returns an empty list. Errors are thrown unless Continue On Fail is enabled, in which case an error item is returned for the input item.

Links

Discussion