IllegalHookInvocationError
Error thrown when a guild-scoped hook cannot resolve a Player or guild queue.
You are reading the v8 docsDev
ClassTypeScript@discord-player/plugin-host
View sourcepackages/plugin-host/src/errors.ts:58class IllegalHookInvocationError extends DiscordPlayerErrorError thrown when a guild-scoped hook cannot resolve a Player or guild queue.
Constructors
constructoroverride
constructor(target: string, message?: string)Create a hook invocation error.
Parameters
| Name | Type | Description |
|---|---|---|
| target | string | Hook name or subsystem that was invoked illegally. |
| message? | string | Additional explanation of the required invocation. |
Properties
codereadonly
Inherited from DiscordPlayerError.code
readonly code: DiscordPlayerErrorCodeStable machine-readable error code.