Skip to main content
RestrictGuildIds<Options>(guildIds): (target) => void
Defined in: packages/http-framework/src/lib/interactions/decorators/RestrictGuildIds.ts:28 Decorator that restricts the guild IDs for a command.

Type Parameters

Options

Options extends PieceOptions = PieceOptions

Parameters

guildIds

readonly string[] An array of guild IDs to restrict the command to.

Returns

A decorator function. (target) => void

Example