Functionalities
Other
$findUserInGuild
Returns the ID/name/mention/tag of the user in a specific guild with the provided ID/name/mention. If the bot cannot find a valid user, bot will return `undefined`.
Bot must be in the guild to retrieve the user data!

FUNCTION USAGE

  • $findUserInGuild[user;guild]
  • $findUserInGuild[user;guild;mention]
  • $findUserInGuild[user;guild;name]
  • $finUserInGuild[user;guild;tag]

Properties:

user - Define a user to return it's ID. Can be name, ID or mention. guild - Define the guild with a guildID mention - Type the word mention to have the bot mention the user. name - Type the word name to have the bot return the user's username. tag - Type the word tag to have the bot return the user's tag.

Example 1: Getting the user ID form a specific guild.

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

Example 1: Type the word mention in the 2nd field to return the user mention.

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

Example 2: Type the word name in the 2nd field to return the user's username.

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

Example 3: Type the word tag in the 2nd field to return the user's tag.

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