Piecewise

Build chat bots with blocks

channel (channel) is (type)

In Discord → Channels

Jump to block

Determine if a channel is a particular type.

Requires the following blocks to be present in the project: discord login

Parameters

Parameter name Parameter type Required? Description
channel channel The channel to check.
type String The channel type to check for.

Output

Boolean - Whether the channel is of the selected type.