$client
A `Compact Function` that returns information relating to your bot with `22` options to choose from. A total of `26` options includes the duplicate output options.

FUNCTION USAGE

    $client
    $client[option]
​

Properties:

option - The option to execute the function with.
​
No brackets will return the client (bot's) ID.

OPTIONS

OPTION
ABOUT IT
name
Returns the name of the bot
mention
Returns the client mention.
discriminator
Returns the discriminator of the bot, for example 7923
discrim
(dupe) Returns the discriminator of the bot, for example 7923
id
It returns the ID of the bot
tag
Returns the tag of the bot, for example MyBot#1234
avatar
Gives you avatar URL of the bot.
status
It gives you presence status of the bot.
presence
(dupe) It gives you presence status of the bot.
activity
Provides you current activity of the bot.
lastmessageid
Returns the message ID the last message the bot sent.
lastmid
(dupe) Returns the message ID the last message the bot sent.
lastmessagechannelid
Returns the channel ID of the last message the bot sent.
lastmcid
(dupe) Returns the channel ID of the last message the bot sent.
readyat
The date and time the bot came online.
readytimestamp
How long ago the bot became ready and online.
token
The bots token. THIS IS TO BE KEPT PRIVATE AND NOT SHARED WITH ANYONE!
ownerid
Returns the ID of the bot owner.
appdescription
Returns the description of the bot in the General Information tab in the Discord Developer Portal.
ispublic
Returns true if the bot is a public bot. Otherwise the function returns false.
appicon
Returns the application icon of the bot in the General Information tab in the Discord Developer Portal. [NOT BOT AVATAR].
createdat
Returns the date and time at which the bot was created.
createdtimestamp
Returns how long ago the bot was created.
appname
Returns the application name in the General Information tab in the Discord Developer Portal. [NOT BOT NAME].
requireauth
Returns true if the bot requires a code grant when using the Oauth2 flow. Otherwise the function returns false.
isownerverified
Returns true if the bot owner owns the badge of an Early Verified Bot Developer. Otherwise the function returns false.
​

Example 1: Output will be the bot's ID.

1
bot.Command({
2
name: "test",
3
code: `
4
$client
5
`
6
})
Copied!

Example 2: Output will be the bot's name.

1
bot.Command({
2
name: "test",
3
code: `
4
$client[name]
5
`
6
})
Copied!
Last modified 1mo ago
Copy link