Skip to content
Classcorev0.10.0

Silence

Throw to stop a handler with no reply and no report.

The framework boundary catches Silence before Notice, makes zero Discord calls, and stops. Ideally you'd only throw this in EventHandlers (or Gates for those), because it doesn't make sense to leave the user with no reply for an interaction.

class Silence extends Error

Member visibility

Filter class members by access level.

constructor

Constructs a new instance of the Silence class

Silence(reason?: string | undefined)
Parameter: reason

Optional note written only to a debug log, never shown to the user or reported.

Showing members with Protected visibility and higher.

Properties