Releases: TFAGaming/DiscordJS-V14-Bot-Template
Releases · TFAGaming/DiscordJS-V14-Bot-Template
Version 3.0.1
- Added status rotation: Every 4 seconds, a random status will be set for the bot's presence. (#64 @ATreeShine)
- Updated the bot login attempts logic.
Version 3.0.0
- The database MongoDB has been removed and replaced with YAML for simplicity.
- The client ID is no longer required, the handler will wait until the bot logs in and then register the application commands. For development, the guild ID must be set in config.js.
- The bot now calculates attempts when trying to log in. If it fails, the Node.js process won't stop, it will retry until the bot logs in.
- The handler directory is now in the client directory, and the events used for the handlers are also in separate files, and they're no longer in the events directory.
- The command type directories have been removed, and have now been replaced with a private property
__type__
in the command classes and other classes too, and the property is only used when the handler is reading the files. Here are the values for the type: ApplicationCommand = 1, MessageCommand = 2, Component = 3, AutocompleteComponent = 4, Event = 5. - When you create a command, event, or component, you must export it as an object, so the
toJSON()
function must be used at the end of each class:
module.exports = new ClassName({ ...data }).toJSON();
- Added terminal.log file, which saves previous console messages. This is an important feature for hosting services because when you try to refresh the host panel, the console gets cleared out, while the terminal.log file still saves the messages.
- Improved console logging: Added the time (
Hours:Minutes:Seconds
) on each prefix of console messages so you can get to know when the messages were sent. - Removed useless features such as moderation logs, because this might make the project look like a Discord Moderation bot.
Version 2.4.0
Version 2.3.0
Features added:
- Support for developer-only commands (#42)
- Support for NSFW only commands (#43)
- Message settings (#48)
- Guild commands registration (#50)
- Public and private modes for components (buttons and select menus only) (#51)
- Autocomplete and global cooldown handlers (#53)
Bug fixes:
- Voice channel state always returns
true
in user-info.js command (#45) - Not using the .env key
CLIENT_ID
in deploy.js (#46) - deploy.js won't deploy globally when the guild ID is missing for guild commands registration (#52)
- Modals unable to respond to any of modal interactions (5f4acd5)
- MongoDB won't connect after the property update (#55)
Other updates:
Version 2.2.0
- Modals handler added.
- Custom presence added (discord.js v14.13.0).
- Cooldown system handler added for message and application commands.
- Permissions system handler added for message commands.
Version 2.1.0
- Add components support: You can now handle buttons, select menus, modals... etc.
- Support for
.env
file. - Toggle whenever you need MongoDB for your project or not (as a result, MongoDB is now optional).
- Fixed
help.js
,ping.js
, andmessageCreate.js
: If MongoDB is not connected, the commands/events files use directly the default config prefix instead of throwing an error.
Version 2.0.0
A new rebuild of the old code.
- A lot of bug fixes.
- More features.
Version v1.7.0 Last
The last release of the v1.x.x versions.
- Few bug fixes.
- More updates.
Version 1.6.0
This was a pretty long time with no new releases, but here is a new one!
• Fixed Users.OWNERS
error. (Issue #19)
• New folder "Installation Guide" for organized installation guides.
Thank you all for 90+ stars, I hope you all the best. ❤️
Version 1.5.2
- Message commands event has been added.
I forgot to add this:
if (interaction.isMessageContextMenuCommand()) { // Message:
const command = client.message_commands.get(interaction.commandName);
if (!command) return;
try {
command.run(client, interaction, config, db);
} catch (e) {
console.error(e)
};
};
Thanks for kanetjuh because they told me the error. :)
- Modals handler fixed.
When a modal file has been loaded, it says in the console the file is undefined
.