Skip to main content
RequiresGuildContext(fallback?): MethodDecorator
Defined in: packages/http-framework/src/lib/decorators/RequiresContext.ts:30 Decorator that only runs the decorated method when the interaction was received from a guild.

Parameters

fallback?

ContextFallback = ... The fallback to run when the interaction did not come from a guild. Defaults to a no-op, which silently skips the method.

Returns

MethodDecorator A method decorator.

Example