$userStatus
A `Compact Function` pertaining to a user's status with `7` options to choose from. Returns parts of a users status (If one is set).

FUNCTION USAGE

  • $userStatus[userID;option]

Property:

  • userID - The ID of the user you're checking the status of.
  • option - The option to return the data from.

Options:

  1. 1.
    state
  2. 2.
    emoji
  3. 3.
    type
  4. 4.
    activityname
  5. 5.
    started
  6. 6.
    status
  7. 7.
    details

7 Examples: One given example per option to give a clear example on how each option functions.

state
emoji
type
activityname
started
status
details
state - Returns the description of the users status. Bots will return undefined
1
bot.Command({
2
name: "t",
3
code:`
4
$userStatus[600824086943367168;state]
5
6
`})
Copied!
emoji - Returns the emoji in the users status. If the bot does not share the same server with that emoji, the bot will return :emojiname:
1
bot.Command({
2
name: "t",
3
code:`
4
$userStatus[600824086943367168;emoji]
5
6
`})
Copied!
type - Returns the type of status being displayed
  • WATCHING
  • STREAMING
  • LISTENING
  • PLAYING
  • CUSTOM_STATUS
1
bot.Command({
2
name: "t",
3
code:`
4
$userStatus[600824086943367168;type]
5
6
`})
Copied!
activityname - Returns the description of a bots status. Humans will returnCustom Status if they have one set.
1
bot.Command({
2
name: "t",
3
code:`
4
$userStatus[600824086943367168;activityname]
5
6
`})
Copied!
started - Returns the date and time at which the user/bot started displaying the status.
Example: Sun Dec 20 2020 17:14:56 GMT-0600 (Central Standard Time)
1
bot.Command({
2
name: "t",
3
code:`
4
$userStatus[600824086943367168;started]
5
6
`})
Copied!
status - Returns the presence status of the user/bot.
  • online
  • offline
  • idle
  • dnd
  • invisible
1
bot.Command({
2
name: "t",
3
code:`
4
$userStatus[600824086943367168;status]
5
6
`})
Copied!

Returns details about the user status. For example, If the user is playing a song on Spotify, it will return the song title.

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