From 40d77bacc3dfdd5e9dd9f3ddff0751fe8470ddc8 Mon Sep 17 00:00:00 2001 From: cherryblossom000 <31467609+cherryblossom000@users.noreply.github.com> Date: Sat, 26 Dec 2020 20:54:15 +1100 Subject: [PATCH] types: make Client#voice non-nullable (#5148) Because of the removal of browser support (#5113) Client#voice is always non-nullable. --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 943fbf27d..f01379476 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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;