Functionalities
Other
$platform
Returns the platform where the command author or a specific user is using Discord.

FUNCTION USAGE

  • $platform
  • $platform[]
  • $platform[userID]

Properties:

[] - Leave brackets empty to return the platform the command author is using. Same as no brackets. userID - Returns the platform of the specific user ID.

Outputs:

  • desktop
  • mobile
  • web
  • offline
  • Bot must share the same server as the user ID to read the user data!

Example 1: Returns the platform the command author is using.

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

Example 2: Returns the platform the specific user is using.

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