Piecewise

Build chat bots with blocks

user (user) is banned from server (guild)

In Discord → Moderation; Discord → Users; Discord → Servers

Jump to block

Determine if a user is banned from a server.

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

Parameters

Parameter name Parameter type Required? Description
user user The user to check.
guild guild The server to check.

Output

Boolean - Whether the user is banned from the server.