v5.0.0
$usersBanned
Returns a list of users that are banned from this guild.
This function returns the list of banned users from the current server with optional seperator sorted by userID/mention or usernames.
Default return are usernames of the banned users. The default separator is ,
Raw usage:$usersBanned[id/mention/username (optional);separator (optional)]

Example:

1
bot.command({
2
name: "ban-list",
3
code: `
4
List of banned users:
5
$usersBanned[username;, ]
6
`
7
})
8
// Returns all banned users sorted by their username separated by a comma.
Copied!
Keep the 2,000 character limit in mind.
If your server has many bans, use functions like $cropText to stop after 2,000 chars or $createFile to send the full list in a text file.
Last modified 1mo ago
Copy link
Edit on GitHub