Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Jul 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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