fix(TeamMember): Fixed incorrect return types. (#6044)

This commit is contained in:
BannerBomb
2021-07-04 17:55:00 -04:00
committed by GitHub
parent c6e5521687
commit fe5d56c9b1
2 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ class Team extends Base {
/**
* The Team's owner id
* @type {?string}
* @type {?Snowflake}
*/
this.ownerId = data.owner_user_id ?? null;

6
typings/index.d.ts vendored
View File

@@ -1884,11 +1884,11 @@ declare module 'discord.js' {
public ownerId: Snowflake | null;
public members: Collection<Snowflake, TeamMember>;
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) {