Merge branch 'more-thread-stuff' of https://github.com/discordeno/discordeno into more-thread-stuff

This commit is contained in:
Skillz4Killz
2021-06-13 21:00:12 +00:00
committed by GitHub
@@ -9,12 +9,11 @@ export async function handleThreadMemberUpdate(data: DiscordGatewayPayload) {
const thread = await cacheHandlers.get("threads", snowflakeToBigint(payload.id));
if (!thread) return;
const member = {
const member = {
...payload,
id: snowflakeToBigint(payload.id),
userId: snowflakeToBigint(payload.userId),
joinTimestamp: Date.parse(payload.joinTimestamp),
};
eventHandlers.threadMemberUpdate?.(member, thread);