$mentionedChannels

Returns the ID of the mentioned channel.

Syntax

$mentionedChannels[Mention number;(Return current?)]

Parameters

  • Mention number (Type: HowMany || Flag: Required): The channel-mention to get from the author’s message (1 = first channel-mention, 2 = second, etc).
  • Return current? (Type: Bool || Flag: Optional): Whether to return the current channel ID if no channel is mentioned or not.

Example

$nomention
$mentionedChannels[1]

example