From fe5d56c9b11b3e5f05933c6d746237b9f353b392 Mon Sep 17 00:00:00 2001 From: BannerBomb Date: Sun, 4 Jul 2021 17:55:00 -0400 Subject: [PATCH] fix(TeamMember): Fixed incorrect return types. (#6044) --- src/structures/Team.js | 2 +- typings/index.d.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/structures/Team.js b/src/structures/Team.js index a337cc2ba..7a26d33a4 100644 --- a/src/structures/Team.js +++ b/src/structures/Team.js @@ -36,7 +36,7 @@ class Team extends Base { /** * The Team's owner id - * @type {?string} + * @type {?Snowflake} */ this.ownerId = data.owner_user_id ?? null; diff --git a/typings/index.d.ts b/typings/index.d.ts index 73ca2a1b7..d2f1f4638 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1884,11 +1884,11 @@ declare module 'discord.js' { public ownerId: Snowflake | null; public members: Collection; - public readonly owner: TeamMember; + public readonly owner: TeamMember | null; public readonly createdAt: Date; public readonly createdTimestamp: number; - public iconURL(options?: StaticImageURLOptions): string; + public iconURL(options?: StaticImageURLOptions): string | null; public toJSON(): unknown; public toString(): string; } @@ -1901,7 +1901,7 @@ declare module 'discord.js' { public membershipState: MembershipState; public user: User; - public toString(): string; + public toString(): UserMention; } export class TextChannel extends TextBasedChannel(GuildChannel) {