mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
parent
4c11347511
commit
1dd4c041e0
2 changed files with 7 additions and 3 deletions
|
|
@ -68,9 +68,13 @@ class ClientApplication extends Base {
|
|||
|
||||
/**
|
||||
* The owner of this OAuth application
|
||||
* @type {User|Team}
|
||||
* @type {?User|Team}
|
||||
*/
|
||||
this.owner = data.team ? new Team(this.client, data.team) : this.client.users.add(data.owner);
|
||||
this.owner = data.team ?
|
||||
new Team(this.client, data.team) ?
|
||||
data.owner :
|
||||
this.client.users.add(data.owner) :
|
||||
null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
|
|
@ -255,7 +255,7 @@ declare module 'discord.js' {
|
|||
public icon: string;
|
||||
public id: Snowflake;
|
||||
public name: string;
|
||||
public owner: User | Team;
|
||||
public owner: User | Team | null;
|
||||
public rpcOrigins: string[];
|
||||
public coverImage(options?: AvatarOptions): string;
|
||||
public fetchAssets(): Promise<ClientApplicationAsset>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue