Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 722 Bytes

usdgetchannelvar.md

File metadata and controls

44 lines (30 loc) · 722 Bytes
description
Get the Channel Value.

$getChannelVar

This function gets the given variable value for the current or specified channel

Fields

This function has 1 required field

  1. Variable (Required)
  2. Channel ID (Optional)

Raw Usage: $getChannelVar[variable;channelID (optional)]

Options

  • Variable - The variable value we're getting for the <channel>
  • Channel ID - The channel's variable value we're getting

Usage

Current Channel's Variable Value

bot.command({
name: "get", 
code: `
$getChannelVar[variable]`
})

Mentioned Channel's Variable Value

bot.command({
name: "get", 
code: `
$getChannelVar[variable;$mentionedChannels[1]]`
})