Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
function followAnnouncementChannel
import { followAnnouncementChannel } from "https://deno.land/x/discordeno@17.0.0/helpers/channels/mod.ts";

Follows an announcement channel, allowing messages posted within it to be cross-posted into the target channel.

Parameters

bot: Bot
  • The bot instance to use to make the request.
sourceChannelId: BigString
  • The ID of the announcement channel to follow.
targetChannelId: BigString
  • The ID of the target channel - the channel to cross-post to.

Returns

Promise<bigint>

An instance of FollowedChannel.