How to use blocks

Blocks are used to describe what needs to be done when an event is triggered. Some can get an information, others can do something in your Discord server.

Values blocks

These blocks are used to get an information from your Discord server, like "what's the username of this user ?" or "Does this user has this role ?". You can use the result of these blocks in others blocks.

Here is an example :

When a message is sent, we check if the user has the Manage server permission. The "Does user has permission" block return a Boolean to the "If" block. If the user has the permission, we continue, else, we can stop here since there isn't any "else" statement.

Values blocks types

When using values blocks with others blocks, you must be careful of the type returned by the value block, and the type needed by the used input. Some values blocks will return an User, some return a TextChannel, ...

Here is a list of available types in DIsblock :

Variable typeExplanations


A text - Can be a word, a sentence, ...


Also called Integer, that represent a number.


Can contain any type of elements.


A color.


Can be True or False, generally used with If/Else blocs.


Someone in your Discord server.


A text channel within your server.


A voice channel within your server.


A Thread channel within a text channel.


A category within your server.


A message sent by an user.


An embed message, to send somewhere on your server.


Also called Role.


An emoji from Discord ( globally available ), or from your DIscord server.

Action blocks

Action blocks are used to interact with your Discord server. These blocks must be used inside events blocks to be enabled, and are executed one by one.

Last updated