mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
typings(Presence): add missing guild property
This commit is contained in:
@@ -48,7 +48,7 @@ class Presence {
|
|||||||
* The guild of this presence
|
* The guild of this presence
|
||||||
* @type {?Guild}
|
* @type {?Guild}
|
||||||
*/
|
*/
|
||||||
this.guild = data.guild;
|
this.guild = data.guild || null;
|
||||||
|
|
||||||
this.patch(data);
|
this.patch(data);
|
||||||
}
|
}
|
||||||
|
|||||||
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -828,11 +828,12 @@ declare module 'discord.js' {
|
|||||||
export class Presence {
|
export class Presence {
|
||||||
constructor(client: Client, data?: object);
|
constructor(client: Client, data?: object);
|
||||||
public activity: Activity | null;
|
public activity: Activity | null;
|
||||||
public flags: Readonly<ActivityFlags>;
|
|
||||||
public status: PresenceStatus;
|
|
||||||
public clientStatus: ClientPresenceStatusData | null;
|
public clientStatus: ClientPresenceStatusData | null;
|
||||||
public readonly user: User | null;
|
public flags: Readonly<ActivityFlags>;
|
||||||
|
public guild: Guild | null;
|
||||||
public readonly member: GuildMember | null;
|
public readonly member: GuildMember | null;
|
||||||
|
public status: PresenceStatus;
|
||||||
|
public readonly user: User | null;
|
||||||
public equals(presence: Presence): boolean;
|
public equals(presence: Presence): boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user