Discord Player

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:58
class IllegalHookInvocationError extends DiscordPlayerError

Error 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

NameTypeDescription
targetstring

Hook name or subsystem that was invoked illegally.

message?string

Additional explanation of the required invocation.

Properties

codereadonly

Inherited from DiscordPlayerError.code

readonly code: DiscordPlayerErrorCode

Stable machine-readable error code.

On this page