-
Notifications
You must be signed in to change notification settings - Fork 0
Fetching Users

Fetching users is taking an id or a mention (@user or <@id>) and returning the user's info
If the user does not exist it returns null
Cache user fetching is called with PSClient.fetchUser() and it uses the bot's user cache to return the user's info
let user = PSClient.fetchUser(user);
Guild user fetching is called with PSClient.fetchGuildUser() and it uses the guild to return the user's info
It also has an optional guild value if you wish to use it and it defaults to ctx.guild
let user = await PSClient.fetchGuildUser(user);
// or for guild
let user = await PSClient.fetchGuildUser(user, guild);
- Description: Fetches the info for a user using the bot's cache
- Setup: PSClient.fetchUser(user)
- Aliases: fetchMember
-
Returns:
User
- Description: Fetches the info for a user using the guild
- Setup: await PSClient.fetchGuildUser(user, ?guild)
- Aliases: fetchGuildMember
-
Returns:
Guild User
For a look at some examples check out the examples folder
If anything with the mod is updated you can look to the releases for info on it
For a look into the development check out the index.js file
This mod is not associated with the creators of Discord, Discord.JS, or Discord.PY this was created out of love for Discord bot development because I wanted to make things easier for people. I do not condone harassment of the original developers and or anyone else involved in the creation of them.
I am not responsible for anything made with this mod and be sure to follow Discord's terms of service and their community guildlines while developing.
Basics
wc.command()
wc.slashCommand()
wc.commandList
wc.slashCommandList
Basics
wc.event()
wc.eventList
wc.commandAction()
wc.buttonAction()
wc.selectionAction()
wc.rowAction()
wc.fetchMessage()
wc.fetchReply()
wc.fetchUser()
wc.fetchGuildUser()
wc.fetchChannel()
wc.fetchGuildChannel()
wc.fetchRole()
wc.fetchGuildRole()
wc.fetchGuild()
wc.parseEmoji()
wc.parseSticker()