$randomRoleID

Returns a random role ID from the current server or from the provided server.

Syntax

$randomRoleID[(Guild ID)]

Parameters

  • Guild ID (Type: Snowflake || Flag: Optional): The server from which to get a random role ID. (Defaults to the current server)

Example

$nomention
Random Role: $roleName[$randomRoleID[]]
!example Random Role: Owner

It can return the @everyone role ID!

!example Random Role: everyone