Releases: TFAGaming/DiscordJS-V14-Bot-Template
Version 1.5.1
- Modals handler has been added.
module.exports = {
id: "", // The Modal ID that you have added into a slash command, user command or message command.
run: async (client, interaction, config, db) => { // The code after a user has clicked on "Submit" on the modal.
},
};
- Message commands collection bug has been fixed.
Version 1.5.0
- Add User commands handler with Slash commands handler.
More info about User commands is located here.
- All commands directories have been changed into one directory: commands
.
- Slash commands handler renamed into application_commands.js
.
- Better Slash commands handler.
- Fixed prefix commands handler.
- Add pretty-ms
package into the project.
- Moderation directory has been removed.
- Interaction permissions handler has been removed.
Version 1.4.3
Updated the packages.
• Changed [email protected] to [email protected] in package.json because the project can run the new version.
• Added ms package.
New command category: Moderation.
• Added a new folder Moderation
for some moderation commands, and also added mute.js
for the mute command.
Added client presence.
• Just to make your bot cool. :)
Removed "Invalid command, try again?" feature.
• Removed this feature in the event messageCreate
because it is very useless.
Version 1.4.2
Version 1.4.1
Note: Version v1.4.0 was just a small announcement, no need to use that tag. Just move on to the tag v1.4.1.
Slash commands handler updated:
• Client and guild member permissions handler added.
Better prefix commands handler:
• Updated the commands.
From this:
module.exports = {
name: "",
permissions: [],
owner: Boolean,
run: async () => { ...
To this:
module.exports = {
config: {
name: "",
description: "",
usage: "",
},
permissions: [],
owner: Boolean,
run: async () => { ...
• New command usage feature.
How it works?
When you type a command like ?ping
, it should respond with {websocket ping} ms!
. But if the command ends with help
(I mean: ?ping help
), it should respond with the usage of the command.
Version 1.3.0
New Slash commands handler!
• Add new handler: slash.js
• Add new slash command: ping.js
• Add new variable in config.json: GUILD_ID
How GUILD_ID
variable works?
If you've provided your server ID or other server ID in config.json, your bot will register all the slash commands ONLY in the provided server ID (Also register the slash commands into the Discord App). Else, if you haven't provided your server ID in config.json, the bot will register all slash commands in all the servers that the bot was invited in.
Version 1.2.0
Update v1.2.0:
- New system for the command handler: Custom prefix
- Added new packages: quick.db, better-sqlite3
- Updated package: [email protected] → [email protected]
- New command: {prefix}prefix [new prefix]