This library works the same way its parent does (see discord-temp-channels of Androz2091) except that it brings a few new features:
voiceChannelCreate
and 4 moreMANAGE_CHANNELS
permission on themSee ./examples/index.js and ./examples/index2.js.
Starting at v2.0.0, you must use NodeJS v16.6.0 or higher to run a bot with this library.
You also must not forget to include mandatory intents as well as give your bot the rights to use application commands.
npm install --save @hunteroi/discord-temp-channels
manager.on(
TempChannelsManagerEvents.channelRegister,
(parent: ParentChannelData) => {}
);
manager.on(
TempChannelsManagerEvents.channelUnregister,
(parent: ParentChannelData) => {}
);
manager.on(
TempChannelsManagerEvents.childAdd,
(
child: ChildChannelData,
parent: ParentChannelData
) => {}
);
manager.on(
TempChannelsManagerEvents.childRemove,
(
child: ChildChannelData,
parent: ParentChannelData
) => {}
);
manager.on(
TempChannelsManagerEvents.childPrefixChange,
(child: ChildChannelData) => {}
);
manager.on(
TempChannelsManagerEvents.error,
(error: Error | null, message: string) => {}
);
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b patch/YourAmazingWork
git commit -m 'Add some amazing work'
git push origin patch/YourAmazingWork
Thanks to Androz2091 for their initial package. This package is a fork of their own work. Check them out!