Custom Command
FunctionsMember Functions

$getBanReason

Gets the reason a user was banned from the current server.

Usage

$getBanReason[userID]
  1. userID - The ID of the banned user.

Examples

Get ban reason

Member
9/5/2026

!!exec The ban reason is: $getBanReason[123456789123456789]

Custom Command
APP
9/5/2026

The ban reason is: Spamming

User is not banned

If the user is not banned or there is no ban reason set, the function returns an empty value.

Member
9/5/2026

!!exec The ban reason is: $getBanReason[123456789123456789]

Custom Command
APP
9/5/2026

The ban reason is:

Related Functions: $ban $unban $isBanned

Function difficulty: Easy

Tags: Ban Member Moderation Moderator

On this page