reciple 6.0.0-dev.3 → 6.0.0-dev.5

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.
@@ -22,12 +22,12 @@ class ApplicationCommandManager {
22
22
  let guild = guilds?.shift();
23
23
  guild = guild ? this.client.guilds.resolveId(guild) || undefined : undefined;
24
24
  if (!guild) {
25
- this.client.application.commands.set(commands);
25
+ await this.client.application.commands.set(commands);
26
26
  if (!this.client.isClientLogsSilent)
27
27
  this.client.logger.log(`Registered ${this.client.commands.applicationCommandsSize} application command(s) globally...`);
28
28
  }
29
29
  else {
30
- this.client.application.commands.set(commands, guild);
30
+ await this.client.application.commands.set(commands, guild);
31
31
  if (!this.client.isClientLogsSilent)
32
32
  this.client.logger.log(`Registered ${this.client.commands.applicationCommandsSize} application command(s) to guild ${guild}...`);
33
33
  }
@@ -46,12 +46,12 @@ class ApplicationCommandManager {
46
46
  let guild = guilds?.shift();
47
47
  guild = guild ? this.client.guilds.resolveId(guild) || undefined : undefined;
48
48
  if (!guild) {
49
- this.client.application.commands.create(command);
49
+ await this.client.application.commands.create(command);
50
50
  if (!this.client.isClientLogsSilent)
51
51
  this.client.logger.log(`Created application command '${command.name}' globally`);
52
52
  }
53
53
  else {
54
- this.client.application.commands.create(command, guild);
54
+ await this.client.application.commands.create(command, guild);
55
55
  if (!this.client.isClientLogsSilent)
56
56
  this.client.logger.log(`Created application command '${command.name}' to guild ${guild}`);
57
57
  }
@@ -70,12 +70,12 @@ class ApplicationCommandManager {
70
70
  let guild = guilds?.shift();
71
71
  guild = guild ? this.client.guilds.resolveId(guild) || undefined : undefined;
72
72
  if (!guild) {
73
- this.client.application.commands.delete(command);
73
+ await this.client.application.commands.delete(command);
74
74
  if (!this.client.isClientLogsSilent)
75
75
  this.client.logger.log(`Removed application command '${typeof command === 'string' ? command : command.name}' globally`);
76
76
  }
77
77
  else {
78
- this.client.application.commands.delete(command, guild);
78
+ await this.client.application.commands.delete(command, guild);
79
79
  if (!this.client.isClientLogsSilent)
80
80
  this.client.logger.log(`Removed application command '${typeof command === 'string' ? command : command.name}' from guild ${guild}`);
81
81
  }
@@ -94,12 +94,12 @@ class ApplicationCommandManager {
94
94
  let guild = guilds?.shift();
95
95
  guild = guild ? this.client.guilds.resolveId(guild) || undefined : undefined;
96
96
  if (!guild) {
97
- this.client.application.commands.edit(command, newCommand);
97
+ await this.client.application.commands.edit(command, newCommand);
98
98
  if (!this.client.isClientLogsSilent)
99
99
  this.client.logger.log(`Removed application command '${typeof command === 'string' ? command : command.name}' globally`);
100
100
  }
101
101
  else {
102
- this.client.application.commands.edit(command, newCommand, guild);
102
+ await this.client.application.commands.edit(command, newCommand, guild);
103
103
  if (!this.client.isClientLogsSilent)
104
104
  this.client.logger.log(`Removed application command '${typeof command === 'string' ? command : command.name}' from guild ${guild}`);
105
105
  }
@@ -144,7 +144,7 @@ class ClientModuleManager {
144
144
  this.client.logger.info(`${this.client.commands.slashCommands.size} slash commands loaded.`);
145
145
  }
146
146
  if (registerApplicationCommands)
147
- this.client.commands.registerApplicationCommands((0, discord_js_1.normalizeArray)(registerApplicationCommandsGuilds));
147
+ await this.client.commands.registerApplicationCommands((0, discord_js_1.normalizeArray)(registerApplicationCommandsGuilds));
148
148
  }
149
149
  async startModule(mod) {
150
150
  let err;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "6.0.0-dev.3",
3
+ "version": "6.0.0-dev.5",
4
4
  "bin": "./dist/cjs/bin.js",
5
5
  "license": "GPL-3.0",
6
6
  "main": "./dist/cjs/index.js",