Piecewise

Build chat bots with blocks

create server with name (name) with icon (image)

In Discord → Servers

Jump to block

Create a server. Note: this method can only be used by bots in 10 or less servers.

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

Parameters

Parameter name Parameter type Required? Description
name String The name of the server to create.
image String The location of the source image for the server’s icon. It can be a path on the filesystem (i.e. C:\Users\Piecewise\icon.png), or a URL (https://piecewise.im/icon.png).

Output

guild - The server that was created.