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

x/oasis/packages/deps.ts>deleteChannel

An object oriented Discordeno framework
Latest
function deleteChannel
import { deleteChannel } from "https://deno.land/x/oasis@2.1.0/packages/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