Piecewise

Build chat bots with blocks

set activity to (activity) (name)

In Discord → Users

Jump to block

Set the bot’s activity (the info next to the bot’s name in the member list)

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

Parameters

Parameter name Parameter type Required? Description
activity any The descriptor of this activity (i.e. playing, watching, competing…)
name String The name of the activity. Ignored if the descriptor is ‘nothing’.

Output

void - This is a statement with no outputs