reciple 2.0.1 → 2.0.2

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.
@@ -237,7 +237,7 @@ class RecipleClient extends discord_js_1.Client {
237
237
  if ((0, permissions_1.userHasCommandPermissions)(command.name, (_a = interaction.memberPermissions) !== null && _a !== void 0 ? _a : undefined, this.config.permissions.interactionCommands, command)) {
238
238
  if (!command || (0, isIgnoredChannel_1.isIgnoredChannel)(interaction.channelId, this.config.ignoredChannels))
239
239
  return;
240
- if (interaction.guild && (0, permissions_1.botHasExecutePermissions)(interaction.guild, command.requiredBotPermissions)) {
240
+ if (interaction.guild && !(0, permissions_1.botHasExecutePermissions)(interaction.guild, command.requiredBotPermissions)) {
241
241
  if (!command.halt || !(yield command.halt({ executeData, reason: 'MISSING_BOT_PERMISSIONS' }))) {
242
242
  yield interaction.reply(this.getMessage('insufficientBotPerms', 'Insufficient bot permissions.')).catch(er => this._replyError(er));
243
243
  }
@@ -33,7 +33,7 @@ class RecipleConfig {
33
33
  this.config = yaml_1.default.parse(defaultConfig);
34
34
  if (this.config && this.config.token === 'TOKEN') {
35
35
  this.config.token = this.askToken() || this.config.token;
36
- (0, fs_1.writeFileSync)(this.configPath, (0, fallout_utility_1.replaceAll)(defaultConfig, 'TOKEN', this.config.token), 'utf-8');
36
+ (0, fs_1.writeFileSync)(this.configPath, (0, fallout_utility_1.replaceAll)(defaultConfig, ' TOKEN', ` ${this.config.token}`), 'utf-8');
37
37
  }
38
38
  return this;
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Handler for Discord.js",
5
5
  "author": "FalloutStudios",
6
6
  "homepage": "https://reciple.js.org",
@@ -84,9 +84,15 @@ client:
84
84
  messages:
85
85
  notEnoughArguments: 'Not enough arguments.'
86
86
  invalidArguments: 'Invalid argument(s) given.'
87
+ insufficientBotPerms:
88
+ content: 'Insufficient bot permissions.'
89
+ ephemeral: true
87
90
  noPermissions:
88
91
  content: 'You do not have permission to use this command.'
89
92
  ephemeral: true
93
+ cooldown:
94
+ content: 'You cannot execute this command right now due to the cooldown.'
95
+ ephemeral: true
90
96
  error:
91
97
  content: 'An error occurred.'
92
98
  ephemeral: true