ChannelService.delete() - shysolocup/noscord.js GitHub Wiki

deletes a given channel

returns one of the channel types

JS
client.import("channels");

client.on("send", async (ctx) => {
    await channels.delete(ctx.channel);
});

Function Async

Arguments:

  • ?guild Guild
    guild to get the categories from

  • ?settings Object
    settings for deleting the channel possible settings:

  • after String or Number
    makes it so it deletes after a timer




⚠️ **GitHub.com Fallback** ⚠️