Virtual-Royaume / Royaume-Discord-Bot

It is the bot of our Discord community, it offers various utility features. It is written in TypeScript and uses DiscordJS to interact with the Discord API.
9 stars 1 forks source link

Allowed channels for commands system #17

Closed Se7en-dev closed 3 years ago

Se7en-dev commented 3 years ago

Additions

With this new system, you can now choose in which channel(s) each individual command can be executed. This is done providing the allowedchannels additional command parameter.

Note : If you don't provide the parameter, the command will only be executable from the commands channel

Changes

ChannelID now contains two enum VoiceChannel and TextChannel. Enum is more convenient than using constants.

Added brackets for ChannelID import statements, since it is now an enum.

Updated allowed channels for the clean command, allowing cleaning messages in every text channel.

This has little to do with this branch, but at the same time we have added the alias "clear" for the "clean" command.