Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#getChannelMessages

An easy to use Discord API Library for Deno.
Go to Latest
method RESTEndpoints.prototype.getChannelMessages
Re-export
import { RESTEndpoints } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Returns the messages for a channel. 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). Returns an array of message objects on success.

Parameters

channelId: string