Fix forgot to update transformer

This commit is contained in:
lts20050703
2021-12-23 18:00:05 +07:00
parent cc95342b6d
commit 81c261d6d8
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ export async function editMember(bot: Bot, guildId: bigint, memberId: bigint, op
mute: options.mute,
deaf: options.deaf,
channel_id: options.channelId,
communication_disabled_until: options.communicationDisabledUntil,
}
);
+3
View File
@@ -58,6 +58,7 @@ export function transformMember(
cachedAt: Date.now(),
avatar: payload.avatar ? bot.utils.iconHashToBigInt(payload.avatar) : undefined,
permissions: payload.permissions ? bot.transformers.snowflake(payload.permissions) : undefined,
communicationDisabledUntil: payload.communication_disabled_until,
};
}
@@ -86,4 +87,6 @@ export interface DiscordenoMember {
avatar?: bigint;
/** The permissions this member has in the guild. Only present on interaction events. */
permissions?: bigint;
/** when the user's timeout will expire and the user will be able to communicate in the guild again (up to 28 days in the future), set to null to remove timeout. Requires the `MODERATE_MEMBERS` permission */
communicationDisabledUntil?: number;
}