File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/website/docs/guide/02-commands Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ the `beforeExecute` function.
7676<Tabs >
7777 <TabItem value = " ts" label = " TypeScript" default >
7878 ``` ts title="src/app/commands/+middleware.ts"
79- import type { MiddlewareContext } from ' commandkit' ;
79+ import { type MiddlewareContext , stopMiddlewares } from ' commandkit' ;
8080
8181 export function beforeExecute(ctx : MiddlewareContext ) {
8282 if (ctx .interaction .user .id !== ' 1234567890' ) {
@@ -138,7 +138,7 @@ instance of the `CommandKitErrorCodes.StopMiddlewares` error.
138138<Tabs >
139139 <TabItem value = " ts" label = " TypeScript" default >
140140 ``` ts title="src/app/commands/+middleware.ts"
141- import type { MiddlewareContext } from ' commandkit' ;
141+ import { type MiddlewareContext , stopMiddlewares } from ' commandkit' ;
142142
143143 export function beforeExecute(ctx : MiddlewareContext ) {
144144 try {
You can’t perform that action at this time.
0 commit comments