Functioncorev0.1.0-next.5
GuildOnly
Passes inside a guild, else refuses.
Agnostic, so it attaches to any handler kind. Often paired with RequirePermissionsRequirePermissions in an andand.
See also:the @Gated decorator from seedcord
GuildOnly(
options?: GateNoticeOptions
): Gate<GateContextBase, "GuildOnly">GuildOnly(
options?: GateNoticeOptions
): Gate<GateContextBase, "GuildOnly">options?
options?: GateNoticeOptionsoptions?: GateNoticeOptionsReword the default refusal with messagemessage, or replace it with noticenotice.