Skip to main content
Module

x/discordeno/mod.ts>startThreadWithMessage

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

Creates a thread, using an existing message as its point of origin.

Parameters

bot: Bot
  • The bot instance to use to make the request.
channelId: BigString
  • The ID of the channel in which to create the thread.
messageId: BigString
  • The ID of the message to use as the thread's point of origin.
options: StartThreadWithMessage
  • The parameters to use for the creation of the thread.

Returns

Promise<Channel>

An instance of the created Channel | Thread.