Functioncorev0.4.1
GuildOnly
Passes inside a guild, else refuses.
Agnostic. Attaches to any handler kind. Often paired with RequirePermissions in an and.
See also:the @Gated decorator from your transport package
GuildOnly(
options?: GateNoticeOptions
): Gate<GateContextBase, "GuildOnly">options?
options?: GateNoticeOptionsReword the default refusal with message, or replace it with notice.