Skip to main content

Function: RequiresDMContext()

RequiresDMContext(fallback: FunctionFallback): MethodDecorator

Defined in: djs-decorators.ts:199

Requires the message to be run in a dm 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