mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
fix: add newly_created prop to channel for threads
This commit is contained in:
@@ -64,6 +64,7 @@ export function transformChannel(
|
||||
createTimestamp: payload.channel.thread_metadata?.create_timestamp
|
||||
? Date.parse(payload.channel.thread_metadata.create_timestamp)
|
||||
: undefined,
|
||||
newlyCreated: payload.channel.newly_created,
|
||||
};
|
||||
|
||||
return channel as Optionalize<typeof channel>;
|
||||
|
||||
@@ -740,6 +740,8 @@ export interface DiscordChannel {
|
||||
member?: DiscordThreadMember;
|
||||
/** 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;
|
||||
/** When a thread is created this will be true on that channel payload for the thread. */
|
||||
newly_created?: boolean;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/topics/gateway#presence-update */
|
||||
|
||||
Reference in New Issue
Block a user