seyfert 4.2.0 → 4.2.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.
@@ -262,7 +262,7 @@ class BaseClient {
262
262
  applicationId ??= await this.getRC().then(x => x.applicationId ?? this.applicationId);
263
263
  (0, common_1.assertString)(applicationId, 'applicationId is not a string');
264
264
  const commands = this.commands.values;
265
- const filter = (0, common_1.filterSplit)(commands, command => ('guildId' in command ? !(command.guildId.length > 0) : true));
265
+ const filter = (0, common_1.filterSplit)(commands, command => ('guildId' in command ? !((command.guildId ?? []).length > 0) : true));
266
266
  if (this.commands.entryPoint) {
267
267
  filter.expect.push(this.commands.entryPoint);
268
268
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",