Piecewise

Build chat bots with blocks

origin channel of message (message)

In Discord → Messages

Jump to block

Get the channel that a message was sent to.

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

Parameters

Parameter name Parameter type Required? Description
message message The message to get the origin channel of.

Output

channel - The channel the specified message was sent to. This may be a DM channel, if the message is a DM.