Skip to main content

Function: RequiresGuildContext()

RequiresGuildContext(fallback: FunctionFallback): MethodDecorator

Defined in: djs-decorators.ts:190

Requires the message to be run in a guild context, this decorator requires the first argument to be a Message or BaseInteraction instance which includes all interaction types

Parameters

ParameterTypeDescription
fallbackFunctionFallbackThe fallback value passed to createFunctionPrecondition

Returns

MethodDecorator

Since

1.0.0