Skip to content
Embed & Message sendToSetting

$sendToSetting — Sends a message to the channel stored in a setting

Sends a message to the channel stored in a setting. Does nothing while the setting is empty or is not a channel.

Syntax

$sendToSetting[variable;text;(scope);(target);(guildID)]

Parameters

  • variable (text, required) — The setting that holds a channel ID (or a <#ID> mention).
  • text (text, required) — The message.
  • scope (text, optional) — Default: server.
  • target (ID, optional) — Same as $increment.
  • guildID (ID, optional) — Same as $increment.

Return Value

  • empty.

Usage

$sendToSetting[logChannel;Member banned]

Example

$sendToSetting[logChannel;Member banned]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.