types: make Client#voice non-nullable (#5148)

Because of the removal of browser support (#5113) Client#voice is always non-nullable.
This commit is contained in:
cherryblossom000
2020-12-26 20:54:15 +11:00
committed by GitHub
parent b8be7237b8
commit 40d77bacc3

2
typings/index.d.ts vendored
View File

@@ -208,7 +208,7 @@ declare module 'discord.js' {
public readonly uptime: number | null;
public user: ClientUser | null;
public users: UserManager;
public voice: ClientVoiceManager | null;
public voice: ClientVoiceManager;
public ws: WebSocketManager;
public destroy(): void;
public fetchApplication(): Promise<ClientApplication>;