Skip to content
Functioncorev0.12.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?

Replace the refusal with a Notice class as notice.