From 6d74ebab74e43e062c189731b711a83d2abc035b Mon Sep 17 00:00:00 2001 From: BannerBomb Date: Sun, 4 Jul 2021 17:34:17 -0400 Subject: [PATCH 1/2] Update index.d.ts --- typings/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 44a4fd10516c..c0da31102f32 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) { From 8fdb5be9cb85b4e0a0a3b897139f13f79db5d266 Mon Sep 17 00:00:00 2001 From: BannerBomb Date: Sun, 4 Jul 2021 17:35:24 -0400 Subject: [PATCH 2/2] Update Team.js --- src/structures/Team.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Team.js b/src/structures/Team.js index a337cc2ba5d5..7a26d33a4da7 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;