From 41bd6c2717faeeaa36514d39a4816f7cf65b4c02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Rom=C3=A1n?= Date: Wed, 27 Jan 2021 11:27:01 +0100 Subject: [PATCH] fix(GuildChannel): overload permissionsFor and BaseManager#resolve[id] (#5260) * fix(GuildChannel): overload permissionsFor and BaseManager#resolve[id] * fix(GuildChannel): GuildMessage and Role trigger non-null return --- typings/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/typings/index.d.ts b/typings/index.d.ts index f86e4611d..dd3b52cf6 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -765,6 +765,7 @@ declare module 'discord.js' { overwrites: readonly OverwriteResolvable[] | Collection, reason?: string, ): Promise; + public permissionsFor(memberOrRole: GuildMember | Role): Readonly; public permissionsFor(memberOrRole: GuildMemberResolvable | RoleResolvable): Readonly | null; public setName(name: string, reason?: string): Promise; public setParent( @@ -1873,7 +1874,9 @@ declare module 'discord.js' { public cacheType: Collection; public readonly client: Client; public add(data: any, cache?: boolean, { id, extras }?: { id: K; extras: any[] }): Holds; + public resolve(resolvable: Holds): Holds; public resolve(resolvable: R): Holds | null; + public resolveID(resolvable: Holds): K; public resolveID(resolvable: R): K | null; public valueOf(): Collection; }