xernerx 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
Binary file
package/models/Client.js CHANGED
@@ -7,7 +7,7 @@ const { LanguageHandler } = require('./handlers/LanguageHandler.js');
7
7
 
8
8
  /**
9
9
  * @param {string} guildId - Test guild ID.
10
- * @param {boolean} global - Whether the bot shoumd be globally or locally loaded.
10
+ * @param {boolean} global - Whether the bot should be globally or locally loaded.
11
11
  * @param {string[]} prefix - An array of prefix'.
12
12
  * @param {string[]} ownerId - An array of bot owners.
13
13
  * @param {boolean} ignoreOwner - Whether the bot should ignore owner privileges.
@@ -30,7 +30,6 @@ class Client extends Discord.Client {
30
30
  defaultCooldown: s.number.optional,
31
31
  logging: s.boolean.optional,
32
32
  cacheTime: s.number.optional,
33
- dummi: s.boolean.optional,
34
33
  userPermissions: s.array(s.string).optional,
35
34
  clientPermissions: s.array(s.string).optional
36
35
  }).parse(options)
@@ -34,7 +34,7 @@ class MessageCommand {
34
34
 
35
35
  this.id = id;
36
36
 
37
- this.aliases = [...(options.aliases ? options.aliases : []), options.name];
37
+ this.aliases = [options.name, ...(options.aliases ? options.aliases : [])];
38
38
 
39
39
  this.type = options.type;
40
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xernerx",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "A bot framework for discord.js. [BETA]",
5
5
  "main": "main.js",
6
6
  "scripts": {