mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
fix(types): invitable & createTimestamp are in ThreadMetadata and not in Channel (#2056)
This commit is contained in:
@@ -71,8 +71,10 @@ 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,
|
||||
invitable: payload.channel.thread_metadata?.invitable,
|
||||
createTimestamp: payload.channel.thread_metadata?.create_timestamp
|
||||
? Date.parse(payload.channel.thread_metadata.create_timestamp)
|
||||
: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -58,8 +58,4 @@ 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user