Skip to content
Functioncorev0.10.0

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?

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