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; diff --git a/typings/index.d.ts b/typings/index.d.ts index 73ca2a1b7d86..d2f1f46389bf 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) {