Skip to main content

Function: isMessageInstance()

isMessageInstance(message: APIMessage | Message<boolean>): message is Message<boolean>

Checks whether a given message is an instance of Message, and not APIMessage

Parameters

ParameterTypeDescription
messageAPIMessage | Message<boolean>The message to check

Returns

message is Message<boolean>

true if the message is an instance of Message, false otherwise.

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/type-guards.ts:234