Skip to main content
Module

x/discordeno/mod.ts>createForumThread

Discord API library for Deno
Latest
function createForumThread
import { createForumThread } from "https://deno.land/x/discordeno@18.0.1/mod.ts";

Creates a new thread in a forum channel, and sends a message within the created thread.

Parameters

bot: Bot
  • The bot instance to use to make the request.
channelId: BigString
  • The ID of the forum channel to create the thread within.
options: CreateForumPostWithMessage
  • The parameters for the creation of the thread.

Returns

Promise<Channel>

An instance of Channel with a nested Message object.