Function: isPrivateThreadChannel()
isPrivateThreadChannel(
channel
:Nullish
|ChannelTypes
):channel is PrivateThreadChannel
Checks whether a given channel is a PrivateThreadChannel This checks for ChannelType.PrivateThread.
Parameters
Parameter | Type | Description |
---|---|---|
channel | Nullish | ChannelTypes | The channel to check. |
Returns
channel is PrivateThreadChannel
Defined in
projects/utilities/packages/discord.js-utilities/src/lib/type-guards.ts:150