mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
fix(TeamMember): Fixed incorrect return types. (#6044)
This commit is contained in:
@@ -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
6
typings/index.d.ts
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user