Updating from v2 to v3

Changes in v3

DANGER

You need to import GCommands before importing discord.js

- cooldown.default
+ defaultCooldown

- cmd.requiredPermission
+ cmd.userRequiredPermissions
+ cmd.clientRequiredPermissions

- client.uset.setGuildPrefix
+ client.dispatcher.setGuildPrefix
+ guild.setCommandPrefix
- client.uset.getGuildPrefix
+ client.dispatcher.getGuildPrefix
+ guild.getCommandPrefix

- client.on("gDebug")
+ GCommands.on("debug")

- errorMessage
+ unknownCommandMessage

- cooldown.message
+ language
+ ownLanguageFile

- commandos.requiredRoleMessage
- commandos.requiredPermissionMessage

[-] Commands

- command.subCommand
- command.subCommandGroup
+ command.expectedArgs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

Custom Languages

You can also create your own languages/edit language messages

new GCommands(client, {
  language: "czech", // english, spanish, portuguese, russian, german, czech, slovak, turkish, polish, indonesian, italian
  ownLanguageFile: require("./message.json"), // optional
});
1
2
3
4

Here's the default message.json fileopen in new window

More Changes