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),
|
||||
bitfield: createNewProp(bitfield),
|
||||
ownerId: createNewProp(snowflakeToBigint(channel.ownerId!))
|
||||
});
|
||||
}
|
||||
|
||||
@@ -63,6 +64,7 @@ export interface Thread {
|
||||
autoArchiveDuration: number;
|
||||
archived: boolean;
|
||||
locked: boolean;
|
||||
ownerId: string;
|
||||
}
|
||||
|
||||
export interface DiscordenoThread {
|
||||
@@ -76,5 +78,6 @@ export interface DiscordenoThread {
|
||||
archived: boolean;
|
||||
locked: boolean;
|
||||
bitfield: bigint;
|
||||
ownerId: bigint;
|
||||
toJSON(): Thread;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user