diff --git a/src/structures/Presence.js b/src/structures/Presence.js index 55937cea4..22c70e6b3 100644 --- a/src/structures/Presence.js +++ b/src/structures/Presence.js @@ -48,7 +48,7 @@ class Presence { * The guild of this presence * @type {?Guild} */ - this.guild = data.guild; + this.guild = data.guild || null; this.patch(data); } diff --git a/typings/index.d.ts b/typings/index.d.ts index 726f07428..35c8a6f1d 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -828,11 +828,12 @@ declare module 'discord.js' { export class Presence { constructor(client: Client, data?: object); public activity: Activity | null; - public flags: Readonly; - public status: PresenceStatus; public clientStatus: ClientPresenceStatusData | null; - public readonly user: User | null; + public flags: Readonly; + public guild: Guild | null; public readonly member: GuildMember | null; + public status: PresenceStatus; + public readonly user: User | null; public equals(presence: Presence): boolean; }