diff --git a/apps/website/docs/guide/02-commands/08-middlewares.mdx b/apps/website/docs/guide/02-commands/08-middlewares.mdx index 9f271da4..3b411577 100644 --- a/apps/website/docs/guide/02-commands/08-middlewares.mdx +++ b/apps/website/docs/guide/02-commands/08-middlewares.mdx @@ -76,7 +76,7 @@ the `beforeExecute` function. ```ts title="src/app/commands/+middleware.ts" - import type { MiddlewareContext } from 'commandkit'; + import { type MiddlewareContext, stopMiddlewares } from 'commandkit'; export function beforeExecute(ctx: MiddlewareContext) { if (ctx.interaction.user.id !== '1234567890') { @@ -138,7 +138,7 @@ instance of the `CommandKitErrorCodes.StopMiddlewares` error. ```ts title="src/app/commands/+middleware.ts" - import type { MiddlewareContext } from 'commandkit'; + import { type MiddlewareContext, stopMiddlewares } from 'commandkit'; export function beforeExecute(ctx: MiddlewareContext) { try {