class VoiceStateManager
extends
CachedManager<Snowflake, VoiceState, typeof VoiceState>export class VoiceStateManager extends CachedManager<Snowflake, VoiceState, typeof VoiceState>
Manages API methods for VoiceStates and stores their cache.
readonlyCollection<Key, Holds> cache :
The cache of items for this manager.
Inherited from: DataManager
Guild guild :
The guild this manager belongs to
readonlyConstructable<Holds> holds :
The data structure belonging to this manager.
Inherited from: DataManager
fetchmember: GuildMemberResolvable | '@me'options?: BaseFetchOptions) : Promise<VoiceState> (
member: GuildMemberResolvable | '@me'
options?: BaseFetchOptions
Obtains a user's voice state from discord or from the cache if it's already available.
Examples:
// Fetch a member's voice state
guild.voiceStates.fetch("66564597481480192")
.then(console.log)
.catch(console.error);
Overload 1
Overload 2
Overload 1
Overload 2
valueOfCollection<Key, Holds> () :
Inherited from: DataManager