events.guild_members_chunk: Event, emitted whenever one sends a respond for...

Description Usage Arguments Disclaimer Examples

View source: R/events_guildmemberschunk.r

Description

Event, emitted whenever one sends a respond for GUILD_MEMBERS_CHUNK

Usage

1

Arguments

data

The event fields

client

The client object

Disclaimer

This event will return guild id instead of guild object if not cached. this can be used in order to fetch the guild from the API If the guild is not cached therefore the chunk won't be cached to as a result, the chunk will be returned as an array of GuildMember objects :) so you will be able to cache the chunk when you fetch a new guild! IF the guild is cached and it should be, the guild will be a guild object and the members will be an array of IDs representing the new members

Examples

1
2
3
4
5
6
## Not run: 
#TODO



## End(Not run)

TheOnlyArtz/Pirate documentation built on Oct. 31, 2019, 12:12 a.m.