$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.

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

bot.Command({
name: "test",
code: `
$client
`
})

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

bot.Command({
name: "test",
code: `
$client[name]
`
})
Last modified 11mo ago
Copy link