mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
Merge pull request #1955 from lts20050703/gh-1911
discord-api-docs: Document thread.create_timestamp
This commit is contained in:
@@ -72,6 +72,8 @@ export function transformChannel(
|
||||
botIsMember: Boolean(payload.channel.member),
|
||||
archived: payload.channel.thread_metadata?.archived,
|
||||
locked: payload.channel.thread_metadata?.locked,
|
||||
invitable: payload.channel.invitable,
|
||||
createTimestamp: payload.channel.create_timestamp ? Date.parse(payload.channel.create_timestamp) : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -142,4 +144,6 @@ export interface DiscordenoChannel {
|
||||
parentId?: bigint;
|
||||
/** The voice states that are in this channel assuming it is a voice channel. */
|
||||
voiceStates?: Collection<bigint, DiscordenoVoiceState>;
|
||||
/** timestamp when the thread was created; only populated for threads created after 2022-01-09 */
|
||||
createTimestamp?: number;
|
||||
}
|
||||
|
||||
@@ -58,4 +58,8 @@ export interface Channel {
|
||||
defaultAutoArchiveDuration?: number;
|
||||
/** computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on a application command interaction */
|
||||
permissions?: string;
|
||||
/** 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?: string;
|
||||
}
|
||||
|
||||
@@ -10,4 +10,6 @@ export interface ThreadMetadata {
|
||||
locked?: boolean;
|
||||
/** 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: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user