$fetchGuildMembers
Fetches and cahces members of a guild.
Usage
$fetchGuildMembers[guildID]
This function has one param.
Param
Description
Type
Required
guildID
The guild to fetch the members of.
Snowflake
Yes
It's highly recommended that you have the `GUILD_MEMBERS` intent enabled when using this function.
Example
bot.commands.add({
type: "basicCommand",
name: "example",
code: `$fetchGuildMembers[$guildID]` //Fetches the current guild's members
})
Last updated
Was this helpful?