$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

1
bot.Command({
2
name: "user",
3
code: `
4
$user[$message[1];$message[2]]
5
`
6
})
Copied!

Example 2: Fetching user data mention, name or ID

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