Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#deleteChannel

An easy to use Discord API Library for Deno.
Go to Latest
method RESTEndpoints.prototype.deleteChannel
Re-export
import { RESTEndpoints } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Delete a channel, or close a private message. Requires the MANAGE_CHANNELS permission for the guild. Deleting a category does not delete its child channels; they will have their parent_id removed and a Channel Update Gateway event will fire for each of them. Returns a channel object on success. Fires a Channel Delete Gateway event.

Parameters

channelId: string

Returns

Promise<void>