Skip to content

Instantly share code, notes, and snippets.

@onepiecehung
Created December 30, 2020 17:03
Show Gist options
  • Save onepiecehung/02fc57ddc33ad09ab96df9e262038ad6 to your computer and use it in GitHub Desktop.
Save onepiecehung/02fc57ddc33ad09ab96df9e262038ad6 to your computer and use it in GitHub Desktop.
Simple example for discord.js-temporary-channel
const Discord = require("discord.js");
const client = new Discord.Client();
const tempChannel = require("discord.js-temporary-channel");
//just call API
tempChannel.autoCreateChannel(client, {
userLimit: 12,
reason: "powered by ds112",
nameStartsWith: "3AT ",
nameStartsWithTemp: "* ",
});
client.login("YOUR_DISCORD_APP_TOKEN");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment