Skip to content

$userPlatform

$userPlatform will return the platform which the user is using Discord with.

Usage

$userPlatform[userID?;guildID?;sep?]

Parameters

FieldTypeDescriptionRequired
userID?numberID of the user.false
guildID?numberThe guild ID of where the user is present in.false
sep?stringThe separator to split multiple platforms.false

Platforms:

  • web - The user is currently using the web client.
  • mobile - The user is using the mobile app.
  • desktop - The user is using the desktop app.
  • none - The user is either offline, or unable to fetch the platform.

Example(s)

This will return your platform you’re using Discord on:

1
client.command({
2
name: "userPlatform",
3
code: `
4
$userPlatform[$authorID;$guildID;, ]
5
`
6
});