Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/discordeno_patched/plugins/cache/deps.ts>crosspostMessage

Discord API library for Node and Deno
Latest
function crosspostMessage
import { crosspostMessage } from "https://deno.land/x/discordeno_patched@18.0.3/plugins/cache/deps.ts";

Cross-posts a message posted in an announcement channel to subscribed channels.

Parameters

bot: Bot
  • The bot instance to use to make the request.
channelId: BigString
  • The ID of the announcement channel.
messageId: BigString
  • The ID of the message to cross-post.

Returns

Promise<Message>

An instance of the cross-posted Message.