Skip to main content
RequiresDMContext(fallback?): MethodDecorator
Defined in: packages/http-framework/src/lib/decorators/RequiresContext.ts:56 Decorator that only runs the decorated method when the interaction was not received from a guild, that is, from a DM or from a user-installed app context.

Parameters

fallback?

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

Returns

MethodDecorator A method decorator.

Example