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.
readonlycache : Collection<Key, Holds>
The cache of items for this manager.
Inherited from: DataManager
guild : Guild
The guild this manager belongs to
readonlyholds : Constructable<Holds>
The data structure belonging to this manager.
Inherited from: DataManager
fetch(member: 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
valueOf() : Collection<Key, Holds>
Inherited from: DataManager