GuildErrors: {
    cause?: string;
    code?: string;
    codeKey?: string;
    docsUrl?: string;
    fix?: string;
    message: string;
    missingPermissions?: string[];
    permissionReport?: GuildErrorPermissionReport;
    severity?: "error" | "warning" | "info";
    time: number;
    title?: string;
}[]

Type declaration

  • Optionalcause?: string

    Plain-English explanation of what caused the error.

  • Optionalcode?: string

    Documented error id shown to admins, e.g. "NOTI-1004".

  • OptionalcodeKey?: string

    Stable enum key, e.g. "CHANNEL_MISSING_PERMISSIONS".

  • OptionaldocsUrl?: string

    Optional deep link to docs for this code.

  • Optionalfix?: string

    Admin-actionable steps to resolve it.

  • message: string
  • OptionalmissingPermissions?: string[]
  • OptionalpermissionReport?: GuildErrorPermissionReport

    Exact have/missing permission breakdown + whether it's a channel or role problem.

  • Optionalseverity?: "error" | "warning" | "info"
  • time: number
  • Optionaltitle?: string

    Short heading for the log row.