Skip to content
GitHub

ResponseErrorOptions

interface in meocord/common Since 4.1.0

interface ResponseErrorOptions

Options for ResponseState.error.

Members

message

message?: string

What the user is told. Defaults to a UserError's own message, or a generic sentence.

visibility

visibility?: 'reply' | 'private'

'reply' (default) may turn a public deferred reply into the error; 'private' (the default for a UserError) never shows it to anyone but the user who made the call.