mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
threads have owners duh
This commit is contained in:
@@ -50,6 +50,7 @@ export function channelToThread(channel: Channel) {
|
|||||||
),
|
),
|
||||||
autoArchiveDuration: createNewProp(channel.threadMetadata?.autoArchiveDuration || 0),
|
autoArchiveDuration: createNewProp(channel.threadMetadata?.autoArchiveDuration || 0),
|
||||||
bitfield: createNewProp(bitfield),
|
bitfield: createNewProp(bitfield),
|
||||||
|
ownerId: createNewProp(snowflakeToBigint(channel.ownerId!))
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,6 +64,7 @@ export interface Thread {
|
|||||||
autoArchiveDuration: number;
|
autoArchiveDuration: number;
|
||||||
archived: boolean;
|
archived: boolean;
|
||||||
locked: boolean;
|
locked: boolean;
|
||||||
|
ownerId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DiscordenoThread {
|
export interface DiscordenoThread {
|
||||||
@@ -76,5 +78,6 @@ export interface DiscordenoThread {
|
|||||||
archived: boolean;
|
archived: boolean;
|
||||||
locked: boolean;
|
locked: boolean;
|
||||||
bitfield: bigint;
|
bitfield: bigint;
|
||||||
|
ownerId: bigint;
|
||||||
toJSON(): Thread;
|
toJSON(): Thread;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user