DB-Script
Discord Server
NPM
Search…
DB-Script
Getting Started
NPM Updates
Known Bugs
Functionalities
Bot Functions
Events
Functions
Action
Compacts
$channel
$client
$cmd
$emoji
$getFromEmbed
$guild
$hostBattery
$hostCPU
$hostDisk
$hostOS
$hostRAM
$member
$msg
$role
$user
$userStatus
$voice
$voiceInfo
$webhook
Conditions
Data
Embeds
Limiters
Music
Variables
Guides
Other
Contributors
Discord Server
FAQs
Staff
Powered By
GitBook
$user
A `Compact Function` pertaining to a Discord user with `14` options to choose from.
FUNCTION USAGE
$user[userID;option]
Properties:
userID
-
Define a user with the ID.
option
-
Define a message with the ID.
​
Options:
1.
avatar
2.
created
3.
discrim
4.
id
5.
isbot
6.
istyping
7.
lastmessagechannelid
8.
lastmessageid
9.
lastmessageurl
10.
mention
11.
name
12.
tag
13.
timestamp
14.
banner
​
undefined
is returned when the option data cannot be fetched
avatar
created
discrim
id
isbot
istyping
lastmessagechannelid
lastmessageid
lastmessageurl
mention
name
tag
displayname
banner
Returns the avatar URL of the user.
Returns the date and time at which the user signed up with Discord.
Returns the discriminator of the user who sent the message.
Returns the ID of the user.
Returns true if the user is a bot. Otherwise it returns false.
Returns true if the user is currently typing in the channel. Returns false if the user is not currently typing.
Returns the ID of the channel where the user sent their last message.
Returns the ID of the last message sent by the user.
Returns the URL of the last message sent by the user.
Returns the users mention.
Returns the username of the user.
Returns the users tag (combination of username and discriminator).
Returns the users display name. Like $nickame.
Returns the profile banner of the user.
Example 1: Fetching user data with user ID
bot.Command({
name: "user",
code: `
$user[$message[1];$message[2]]
`
})
Example 2: Fetching user data mention, name or ID
bot.Command({
name: "user",
code: `
$user[$message[1]];$message[2]]
`
})
Previous
$role
Next
$userStatus
Last modified
11mo ago
Copy link
Outline
Properties:
Options: