Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onepiecehung/discord.js-temporary-channel
Discord.js-Temporary-Channel (Only for voice channel)
https://github.com/onepiecehung/discord.js-temporary-channel
create-temp-channel discord discord-api discord-bot discord-js discord-temp-channel
Last synced: about 2 months ago
JSON representation
Discord.js-Temporary-Channel (Only for voice channel)
- Host: GitHub
- URL: https://github.com/onepiecehung/discord.js-temporary-channel
- Owner: onepiecehung
- License: mpl-2.0
- Created: 2019-10-12T01:19:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-26T01:54:03.000Z (7 months ago)
- Last Synced: 2024-11-10T11:50:13.637Z (2 months ago)
- Topics: create-temp-channel, discord, discord-api, discord-bot, discord-js, discord-temp-channel
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/discord.js-temporary-channel
- Size: 7.02 MB
- Stars: 11
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discord.js-Temporary-Channel (Only for voice channel)
![Typescript](https://img.shields.io/badge/Typescript-4.4.x.dev-brightgreen.svg?logo=typescript&style=for-the-badge)
![Node 16](https://img.shields.io/badge/NodeJS-16.6.1-brightgreen.svg?logo=node.js&style=for-the-badge)### QR
### Important
- **Version 4, we support [email protected]**
- **Version 3, we support discord.js version 13, support typescript**
- **Version 2, we support discord.js version 12**
- **Version 1, we support discord.js version less than 12**
### Thanks to Pie from RDVN
```npm
npm i discord.js-temporary-channel
yarn add discord.js-temporary-channel
``````ts
import { Client, GatewayIntentBits, Partials } from "discord.js";const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildVoiceStates,
],
partials: [Partials.Channel],
});import TVC from "discord.js-temporary-channel";
const VC = new TVC(client, {
userLimit: 23,
reason: "powered by ds112",
nameStartWith: "3AT ",
nameStartWithTemporary: "* ",
});// todo: create voice public
VC.autoCreateTemporaryVoiceChannel();// todo: create voice private, thanks to @nodgear
// Private channel method (Only creator has access)
VC.autoCreateTemporaryVoiceChannelPrivate();
// You need to come up with your own implementation on how to invite another users to this channel.
client.on("ready", () => {
console.log(`Logged in as ${client?.user?.tag}!`);
});client.login("TOKEN");
```## API
### autoCreateTemporaryVoiceChannelPrivate(): new channel created will be private [@nodgear](https://github.com/nodgear)