mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
fix: suggested changes by itoh
This commit is contained in:
@@ -20,7 +20,7 @@ export async function handleThreadListSync(data: DiscordGatewayPayload) {
|
||||
);
|
||||
|
||||
eventHandlers.threadListSync?.(
|
||||
new Collection(threads.map((t) => [t.id, t])),
|
||||
new Collection(threads.map((t) => [t.id, channelToThread(t)])),
|
||||
payload.members.map((member) => threadMemberModified(member)),
|
||||
snowflakeToBigint(payload.guildId)
|
||||
);
|
||||
|
||||
@@ -110,8 +110,6 @@ export async function createDiscordenoChannel(data: Channel, guildId?: bigint) {
|
||||
(Object.keys(rest) as (keyof typeof rest)[]).forEach((key) => {
|
||||
eventHandlers.debug?.("loop", `Running forEach loop in createDiscordenoChannel function.`);
|
||||
|
||||
if (key === "threadMetadata") return;
|
||||
|
||||
props[key] = createNewProp(
|
||||
CHANNEL_SNOWFLAKES.includes(key) ? (rest[key] ? snowflakeToBigint(rest[key] as string) : undefined) : rest[key]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user