Skip to content
Lists & Helpers mentionChannel

$mentionChannel — Builds the mention of a channel from its ID (<#ID>)

Builds the mention of a channel from its ID (`<#ID>`).

Syntax

$mentionChannel[channelID]

Parameters

  • channelID (ID, required) — A channel ID. An empty value gives an empty result.

Return Value

  • string: <#channelID>, or empty.

Usage

$mentionChannel[123456789] → "<#123456789>"

Important Notes

  • Useful with a channel stored in a server variable: $mentionChannel[$getGuildVar[logs]] stays empty while the setting is not filled.

Example

$sendMessage[$mentionChannel[123456789]]

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.