From 43d933908ff7e7b974d39c5a136719b358ee744f Mon Sep 17 00:00:00 2001 From: ITOH Date: Sat, 19 Jun 2021 17:13:18 +0200 Subject: [PATCH] add: thread#guildId --- src/util/transformers/channel_to_thread.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/transformers/channel_to_thread.ts b/src/util/transformers/channel_to_thread.ts index 0999c6ff9..c9822fbad 100644 --- a/src/util/transformers/channel_to_thread.ts +++ b/src/util/transformers/channel_to_thread.ts @@ -59,6 +59,7 @@ export function channelToThread(channel: Channel) { bitfield: createNewProp(bitfield), ownerId: createNewProp(snowflakeToBigint(channel.ownerId!)), botIsMember: createNewProp(Boolean(channel.member)), + guildId: createNewProp(snowflakeToBigint(channel.guildId!)), members: createNewProp(new Collection>()), }) as DiscordenoThread; } @@ -78,6 +79,7 @@ export interface Thread { locked: boolean; ownerId: string; botIsMember: boolean; + guildId: string; } export interface DiscordenoThread { @@ -98,6 +100,7 @@ export interface DiscordenoThread { isPrivate: boolean; isPublic: boolean; botIsMember: boolean; + guildId: bigint; members: Collection>; toJSON(): Thread; }