Fault
A generic fault you throw after catching an error you do not have a specific message for.
The user sees a fixed generic reply with the tracking uuid, never the cause. reportreport defaults to truetrue, so the framework logs it and publishes it to the handledExceptionhandledException bus. Pass report: falsereport: false to show the generic reply without the bus publish. The original error is stored as the standard causecause, so the real stack reaches the webhook. For a fault the user should see a real message, subclass NoticeNotice and write your own renderrender instead.
The framework also renders this for an unhandled throw, where it points the user at ctx.developerUsernamectx.developerUsername.
Member visibility
Filter class members by access level.
ephemeral
Whether the reply is ephemeral, so only the invoking user sees it. Set it false for a refusal the whole channel should see.
report
Whether this denial is a reported fault. True also logs it and publishes it to the handledExceptionhandledException bus. The user always sees renderrender either way.
- optional
summary
A short one-line reason. When every arm of an oror gate refuses and each refusal sets this, oror lists them instead of showing a neutral message.
public render(ctx: RenderContext): ReplyResponsepublic render(ctx: RenderContext): ReplyResponse