# GuildOnly

`function` in `seedcord` · v0.14.0

<https://docs.seedcord.org/packages/seedcord/0.14.0/functions/guild-only>

Passes inside a guild, else refuses.

Agnostic, so it attaches to any handler kind. Often paired with [`RequirePermissions`](/packages/seedcord/0.14.0/functions/require-permissions) in an [`and`](/packages/seedcord/0.14.0/functions/and).

```ts
GuildOnly(
    options?: GateNoticeOptions
): Gate<GateContextBase, "GuildOnly">
```

Passes inside a guild, else refuses.

Agnostic, so it attaches to any handler kind. Often paired with [`RequirePermissions`](/packages/seedcord/0.14.0/functions/require-permissions) in an [`and`](/packages/seedcord/0.14.0/functions/and).

Parameters.

- `options?` `GateNoticeOptions` — Reword the default refusal with `message`, or replace it with `notice`.

Returns `Gate<GateContextBase, 'GuildOnly'>`.
