docs/typings(VoiceStateStore): document and type the class (#3294)

* Update index.d.ts

* Update Guild.js

* Update Guild.js

* docs/typings(VoiceStateStore): document and add typings
This commit is contained in:
Skillz4Killz
2019-07-04 10:20:28 -04:00
committed by SpaceEEC
parent b65a4f05da
commit 20d7b3de59
3 changed files with 13 additions and 0 deletions

5
typings/index.d.ts vendored
View File

@@ -469,6 +469,7 @@ declare module 'discord.js' {
public verificationLevel: number;
public readonly verified: boolean;
public readonly voice: VoiceState | null;
public readonly voiceStates: VoiceStateStore;
public readonly widgetChannel: TextChannel | null;
public widgetChannelID: Snowflake | null;
public widgetEnabled: boolean | null;
@@ -1542,6 +1543,10 @@ declare module 'discord.js' {
public fetch(id: Snowflake, cache?: boolean): Promise<User>;
}
export class VoiceStateStore extends DataStore<Snowflake, VoiceState, typeof VoiceState> {
constructor(guild: Guild, iterable?: Iterable<any>);
}
//#endregion
//#region Mixins