T
>: T
extends "command"
? (context
: CommandContext
) => Promise
<void
> | void
: T
extends "component"
? (context
: ComponentContext
) => Promise
<void
> | void
: T
extends "modal"
? (context
: ModalContext
) => Promise
<void
> | void
: T
extends "autocomplete"
? (context
: AutocompleteCommandContext
) => Promise
<void
> | void
: T
extends "message"
? (context
: MessageContextMenuCommandInteraction
) => Promise
<void
> | void
: T
extends "user"
? (context
: CommandContext
) => Promise
<void
> | void
: never
Name | Type |
---|---|
T | extends MiddlewareFunctionNames |
"command"
| "component"
| "modal"
| "autocomplete"
| "message"
| "user"
T
>: T
Name | Type |
---|---|
T | extends string | { id : string ; token : string } |