Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/natico/examples/deps.ts>deleteChannel

A powerful and customizable framework for Discordeno
Latest
function deleteChannel
import { deleteChannel } from "https://deno.land/x/natico@4.0.0-pre.4/examples/deps.ts";

Delete a channel in your server. Bot needs MANAGE_CHANNEL permissions in the server. Bot needs MANAGE_THREADS permissions in the server if deleting thread.

Parameters

bot: Bot
channelId: bigint
optional
reason: string