Function: RequiresGuildContext()
RequiresGuildContext(
fallback
:FunctionFallback
):MethodDecorator
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
Parameter | Type | Description |
---|---|---|
fallback | FunctionFallback | The fallback value passed to createFunctionPrecondition |
Returns
MethodDecorator
Since
1.0.0