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

FUNCTION USAGE:

  • $randomRoleID
  • $randomRoleID[]
  • $randomRoleID[guildID]

Properties:

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

Example 1: A random role from this guild.

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

Example 2: A random role from another guild.

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