diff --git a/index.d.ts b/index.d.ts index b53574110..9031728a1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -818,6 +818,7 @@ declare namespace Eris { avatar: string | null; avatarDecorationData?: AvatarDecorationData | null; communicationDisabledUntil?: number | null; + flags?: number; nick: string | null; pending?: boolean; premiumSince?: number | null; diff --git a/lib/gateway/Shard.js b/lib/gateway/Shard.js index 309a158fd..08691da5e 100644 --- a/lib/gateway/Shard.js +++ b/lib/gateway/Shard.js @@ -1401,6 +1401,7 @@ class Shard extends EventEmitter { oldMember = { avatar: member.avatar, communicationDisabledUntil: member.communicationDisabledUntil, + flags: member.flags, roles: member.roles, nick: member.nick, premiumSince: member.premiumSince, @@ -1416,6 +1417,7 @@ class Shard extends EventEmitter { * @prop {Object?} oldMember The old member data, or null if the member wasn't cached * @prop {String?} oldMember.avatar The hash of the member's guild avatar, or null if no guild avatar * @prop {Number?} oldMember.communicationDisabledUntil Timestamp of previous timeout expiry. If `null`, the member was not timed out + * @prop {Number?} oldMember.flags The member's flags (see Constants). Defaults to 0 * @prop {String?} oldMember.nick The server nickname of the member * @prop {Boolean?} oldMember.pending Whether the member has passed the guild's Membership Screening requirements * @prop {Number?} oldMember.premiumSince Timestamp of when the member boosted the guild