Skip to content

Commit

Permalink
Revert "feat(Invite): add targetUser(Type) (discordjs#3262)"
Browse files Browse the repository at this point in the history
This reverts commit 9430535.
  • Loading branch information
samsamson33 committed Feb 27, 2020
1 parent 439c6bf commit 47e1019
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
18 changes: 0 additions & 18 deletions src/structures/Invite.js
Expand Up @@ -70,24 +70,6 @@ class Invite extends Base {
*/
this.inviter = data.inviter ? this.client.users.add(data.inviter) : null;

/**
* The target user for this invite
* @type {?User}
*/
this.targetUser = data.target_user ? this.client.users.add(data.target_user) : null;

/**
* The type of the target user:
* * 1: STREAM
* @typedef {number} TargetUser
*/

/**
* The target user type
* @type {?TargetUser}
*/
this.targetUserType = typeof data.target_user_type === 'number' ? data.target_user_type : null;

/**
* The channel the invite is for
* @type {Channel}
Expand Down
4 changes: 0 additions & 4 deletions typings/index.d.ts
Expand Up @@ -928,8 +928,6 @@ declare module 'discord.js' {
public maxUses: number | null;
public memberCount: number;
public presenceCount: number;
public targetUser: User | null;
public targetUserType: TargetUser | null;
public temporary: boolean | null;
public readonly url: string;
public uses: number | null;
Expand Down Expand Up @@ -2526,8 +2524,6 @@ declare module 'discord.js' {

type StringResolvable = string | string[] | any;

type TargetUser = number;

type UserResolvable = User | Snowflake | Message | GuildMember;

type VoiceStatus = number;
Expand Down

0 comments on commit 47e1019

Please sign in to comment.