Skip to content
Functioncorev0.10.0

DmOnly

Passes in a direct message, else refuses.

Agnostic, fitting any handler kind. The inverse of GuildOnly, so combining the two in an and can never pass.

See also:the @Gated decorator from your transport package

DmOnly(
    options?: GateNoticeOptions
): Gate<GateContextBase, "DmOnly">

options?

Reword the default refusal with message, or replace it with notice.