ZymiLog in
Pages
Custom commands

Blocks

Blocks are what a command does. Zymi goes through them from top to bottom. There are eight.

BlockWhat it does
ReplyAnswers the member with a text and an embed
Random replyAnswers with one of several texts
Message to a channelPosts in a channel
Direct messageWrites to a member privately
Give or take rolesChanges a member's roles
IfDoes one thing or another
By choiceA branch for each choice of a list
StopEnds the command with a message

Reply

Answers the member who ran the command.

  • Text, and optionally an embed with Add an embed. See Texts and embeds.
  • Only the user sees it: the answer is shown only to the member who ran the command.
A Reply block
A Reply block

A command can have several replies; they come one after another. Whether the first reply is private decides whether the whole answer is.

A command without any reply still answers, only to the member: with the message of a Stop block, or with Done.

Random reply

Answers with one of its texts, picked at random each time. Add up to 20 with Add text. It has Only the user sees it too.

A Random reply block with three texts
A Random reply block with three texts

Message to a channel

Posts a message in a channel.

  • Where: A channel I choose, then pick the Channel; or The channel in a channel parameter, so the member picks it.
  • Text and an optional embed.
Message to a channel: the channel comes from the where parameter
Message to a channel: the channel comes from the where parameter

A channel picked by the member is used only if they could post there themselves. If Zymi can't post in the channel, the member is told and the rest of the command still runs.

Direct message

Writes to a member privately.

  • To: Who ran the command, or the member in a member parameter.
  • Text and an optional embed.

A member who doesn't accept direct messages simply doesn't get it; the member who ran the command is told.

Give or take roles

Changes a member's roles.

  • Action: Give roles or Take roles.
  • To or From: Who ran the command, or the member in a member parameter.
  • Roles: one or several. Only roles below your own highest role are offered. While the check No roles with moderation rights is on, roles with such rights are left out.
  • And: optionally, the role picked in a role parameter as well.
Give roles to who ran it
Give roles to who ran it

A role the member already has isn't given again, and one they don't have isn't taken: the block only changes what needs changing. {roles} in a later text names the roles of the block either way.

Every role change is checked before anything is done. See Roles and safety. Role blocks need Zymi to have the Manage Roles permission; the editor warns when it doesn't.

If, By choice and Stop

These decide which blocks are done. See Conditions.