Merge pull request #1955 from lts20050703/gh-1911

discord-api-docs: Document thread.create_timestamp
This commit is contained in:
Skillz4Killz
2022-02-01 12:12:19 -05:00
committed by GitHub
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -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;
}
+4
View File
@@ -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;
}