Custom Command
FunctionsRole Functions

$roleExists

Checks if a role exists within the server and returns a boolean value (true or false).

Usage:

$roleExists[Role Name/ID]

Parameters:

  • Role Name or ID: The Name/ID of the role you want to check.

Example:

Member
9/5/2026
!!exec $roleExists[Muted]
Custom Command
APP
9/5/2026
true

Explanation:

This example checks if a role with the name "muted" exists on the server. First, $roleID[muted] resolves to the role ID of the role named "muted" (if it exists). Then, $roleExists checks if a role with that ID exists. The command returns true if the role exists and false if it doesn't.

Used Functions

  • $roleID: Retrieves a role's ID by its name.

Related Functions

Function Difficulty: Easy

Tags: Role Exists Check Is Real Server Role

On this page