$fetchGuildMembers

Fetches and cahces members of a guild.

Usage

$fetchGuildMembers[guildID]

This function has one param.

ParamDescriptionTypeRequired

guildID

The guild to fetch the members of.

Snowflake

Yes

`$fetchGuildMembers[]` doesn't return any output.

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