Skip to content

$hasPlayer

$hasPlayer will return either true or false depending on if the current instance has a player in the current guild.

Usage

$hasPlayer[guildID?]

Parameters

FieldTypeDescriptionRequired
guildID?snowflakeguild IDfalse

Example(s)

This will return either true or false depending on if the current instance has a player in the current guild

1
client.command({
2
name: "hasplayer",
3
code: `
4
$hasPlayer
5
`
6
});