meshcore.js
ReferenceTypes

DenyReason

type DenyReason = 
  | {
  name: string;
  type: "unknownCommand";
}
  | {
  type: "scope";
}
  | {
  ageSeconds: number;
  type: "backlog";
}
  | {
  type: "channelUntrusted";
}
  | {
  missing: Permission[];
  type: "missingPermissions";
}
  | {
  remainingSeconds: number;
  type: "cooldown";
}
  | {
  error: Error;
  type: "invalidArguments";
};

Defined in: packages/client/src/commands/context.ts:15

Why a command was refused; every refusal emits commandDenied with one of these.