async function commandAllowed(
  message, // deno-lint-ignore no-explicit-any
  command,
) {
  const inhibitorResults = await Promise.all([
    ...bot.inhibitors.values(),
  ].map((inhibitor) => inhibitor(message, command)));
  if (inhibitorResults.includes(true)) {
    logCommand(message, message.guild?.name || "DM", "Inhibit", command.name);
    return false;
  }
  return true;
}
/** Runs the inhibitors to see if a command is allowed to run. */
Runs the inhibitors to see if a command is allowed to run.
Runs the inhibitors to see if a command is allowed to run .
async function commandAllowed(
  message, 
  command,
) {
  const inhibitorResults = await Promise.all([
    ...bot.inhibitors.values(),
  ].map((inhibitor) => inhibitor(message, command)));
  if (inhibitorResults.includes(true)) {
    logCommand(message, message.guild?.name || "DM", "Inhibit", command.name);
    return false;
  }
  return true;
}
async function commandAllowed ( message , command , ) { const inhibitorResults = await Promise . all ( [ ... bot . inhibitors . values ( ) , ] . map ( ( inhibitor ) => inhibitor ( message , command ) ) ) ; if ( inhibitorResults . includes ( true ) ) { logCommand ( message , message . guild ?. name || "DM" , "Inhibit" , command . name ) ; return false ; } return true ; }
Runs the inhibitors to see if a command is allowed to run.
Runs the inhibitors to see if a command is allowed to run .
// deno-lint-ignore no-explicit-any