exports.conf = {
  type: "get",
  method: "usableCommands",
  appliesTo: ["Message"],
};

// eslint-disable-next-line func-names
exports.extend = function () {
  this.client.commands.filter(command => !this.client.commandInhibitors.some((inhibitor) => {
    if (inhibitor.conf.enabled && !inhibitor.conf.spamProtection) return inhibitor.run(this.client, this, command);
    return false;
  }));
};


exports.conf = {
  type: "get",
  method: "usableCommands",
  appliesTo: ["Message"],
};

// eslint-disable-next-line func-names
exports.extend = function () {
  return this.client.commands.filter(command => !this.client.commandInhibitors.some((inhibitor) => {
    if (inhibitor.conf.enabled && !inhibitor.conf.spamProtection) return inhibitor.run(this.client, this, command);
    return false;
  }));
};

Fix usableCommand bug from Kyra
Fix usableCommand bug from Kyra

