mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
createTimestamp: discord return string, discordeno return number
This commit is contained in:
@@ -74,7 +74,7 @@ export function transformChannel(
|
||||
archived: payload.channel.thread_metadata?.archived,
|
||||
locked: payload.channel.thread_metadata?.locked,
|
||||
invitable: payload.channel.invitable,
|
||||
createTimestamp: payload.channel.create_timestamp,
|
||||
createTimestamp: payload.channel.create_timestamp ? Date.parse(payload.channel.create_timestamp) : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -63,5 +63,5 @@ export interface Channel {
|
||||
/** whether non-moderators can add other non-moderators to a thread; only available on private threads */
|
||||
invitable?: boolean;
|
||||
/** timestamp when the thread was created; only populated for threads created after 2022-01-09 */
|
||||
createTimestamp?: number;
|
||||
createTimestamp?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user