Functionalities
Other
$randomChannelID
Returns a random channel ID from the guild where the command is executed or from a defined guild.

FUNCTION USAGE:

  • $randomChannelID
  • $randomChannelID[]
  • $randomChannelID[guildID]

Properties:

[] - Leave brackets empty to return a random channel ID from the guild where the command is executed. Same as no brackets. guildID - Define a guild to return a random channel from the defined guild.

Example 1: A random channel from this guild.

1
bot.Command({
2
name: "randomchannelid",
3
code: `
4
Here's a random channel ID: $randomChannelID
5
`
6
})
Copied!

Example 2: A random channel from another guild.

1
bot.Command({
2
name: "randomchannelid",
3
code: `
4
Here's a random channel ID: $randomChannelID[56287345682465344]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: