$member
A `Compact Function` resolving data about a guild member with `19` options.

FUNCTION USAGE

    $member[userID;guildID;option]

Properties:

userID - Define a member of a guild with their user ID. guildID - Define the guild where you are getting the data from. option - Define the property by its name.

OPTIONS

Option
Description
nickname
Returns the nickname of the user as a member in that guild. Returns the member's username if the member does not have a nickname.
id
Returns the id of the member as their user ID.
mention
Mentions the member.
username
Returns the username of the member.
rolecount
Returns the amount of roles the user has as a member in that guild.
isbannable
Returns true if the member can be banned by the bot and the bot user. Otherwise, the function returns false.
iskickable
Returns true if the member can be kicked by the bot and the bot user. Otherwise, the function returns false.
exists
Returns true if the member is in that guild. Otherwise, the function returns false.
hexcolor
Returns the hex color of the highest hoisted role of the user as a member in that guild.
guildid
Returns the guild ID of where the member is being called upon.
guildname
Returns the guild name of where the member is being called upon.
isbelowbot
Returns true if the bot is hoisted higher than the member in that guild.
booststamp
Returns how long ago the user started boosting the guild as a member of that guild. Returns notboosting if the member is not boosting.
boostdate
Returns the data and time the user started boosting the guild as a member of that guild. Returns notboosting if the member is not boosting.
joinstamp
Returns how long ago the member joined the guild.
joindate
Returns the data and time the member joined the guild.
presence
Returns the presence status of the user as a member in that guild. - dnd - idle - online - invisible
isboosting
Returns true if the member is boosting the server, otherwise returns false.
tag
Returns the member's user-tag. Helpful when your command is only trying to fetch data from a member locally (in that guild).

Example 1: Returns the amount of roles the command author has in the guild the command is being ran.

1
bot.Command({
2
name: "test",
3
code: `
4
$member[$authorID;$guildID;rolecount]
5
`
6
})
Copied!

Example 2: Returns the presence of the guild member.

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