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

edits a given channel

returns one of the channel types

JS
client.import("channels");

client.on("send", async (ctx) => {
    await channels.edit(ctx.channel, { name: "example" });
});

Function Async

Arguments:

  • ?guild Guild
    guild to get the categories from

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

  • name String
    the channel's name

  • topic/desc String
    the channel's topic

  • slowmode String or Number
    the channel's slowmode

  • category/parent String
    the id of the parent category





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