Skip to content

Commit

Permalink
fix(TeamMember): Fixed incorrect return types. (#6044)
Browse files Browse the repository at this point in the history
  • Loading branch information
BannerBomb committed Jul 4, 2021
1 parent c6e5521 commit fe5d56c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/structures/Team.js
Expand Up @@ -36,7 +36,7 @@ class Team extends Base {

/**
* The Team's owner id
* @type {?string}
* @type {?Snowflake}
*/
this.ownerId = data.owner_user_id ?? null;

Expand Down
6 changes: 3 additions & 3 deletions typings/index.d.ts
Expand Up @@ -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;
}
Expand All @@ -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) {
Expand Down

0 comments on commit fe5d56c

Please sign in to comment.