$roleID

Retrieves the ID of a specified role.

Usage:

$roleID[ROLE NAME]

Argument:

  • ROLE NAME: The name of the role you want to get the ID for. This is case-sensitive.

Example:

Let's say you have a role named "muted" in your server. The following example demonstrates how to retrieve its ID.

Member04/23/2025
!!exec $roleID[muted]
Custom Command Bot 04/23/2025
772053356378062889

In this example, the command returns 772053356378062889, which is the ID of the "muted" role.

Related Functions

  • $findRole: Use this function to find a role by its name or mention if you are unsure of the exact name.
Function difficulty: Easy
Tags: Role get ID Find role ID ID roles