Functionseedcordv0.15.0
DmOnly
Passes in a direct message, else refuses.
Agnostic, so it attaches to any handler kind. The inverse of GuildOnlyGuildOnly, so combining the two in an andand can never pass.
See also:Gated
DmOnly(
options?: GateNoticeOptions
): Gate<GateContextBase, "DmOnly">DmOnly(
options?: GateNoticeOptions
): Gate<GateContextBase, "DmOnly">options?
options?: GateNoticeOptionsoptions?: GateNoticeOptionsReword the default refusal with messagemessage, or replace it with noticenotice.