Add invitable and createTimestamp to Channel & DiscordenoChannel interface

This commit is contained in:
lts20050703
2022-01-27 16:59:22 +07:00
parent 38cb526100
commit 7f65c70733
2 changed files with 8 additions and 0 deletions

View File

@@ -73,6 +73,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,
};
}
@@ -143,4 +145,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?: string;
}

View File

@@ -60,4 +60,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;
}