Construct a type with the properties of T except for those in type K.

interface PublicThreadChannel<Forum extends boolean = boolean> {
    appliedTags: string[];
    archived: null | boolean;
    archiveTimestamp: null | number;
    autoArchiveDuration: null | ThreadAutoArchiveDuration;
    client: Client<true>;
    flags: Readonly<ChannelFlagsBitField>;
    guild: Guild;
    guildId: string;
    id: string;
    invitable: null | boolean;
    lastMessage: null | Message<boolean>;
    lastMessageId: null | string;
    lastPinAt: null | Date;
    lastPinTimestamp: null | number;
    locked: null | boolean;
    memberCount: null | number;
    members: ThreadMemberManager;
    messageCount: null | number;
    messages: GuildMessageManager;
    name: string;
    ownerId: string;
    parentId: null | string;
    rateLimitPerUser: null | number;
    totalMessageSent: null | number;
    type: AnnouncementThread | PublicThread;
    get archivedAt(): null | Date;
    get createdAt(): null | Date;
    get createdTimestamp(): null | number;
    get editable(): boolean;
    get guildMembers(): Collection<string, GuildMember>;
    get joinable(): boolean;
    get joined(): boolean;
    get manageable(): boolean;
    get parent(): | null
    | If<ThreadOnly, ForumChannel | MediaChannel, NewsChannel | TextChannel>;
    get partial(): false;
    get sendable(): boolean;
    get unarchivable(): boolean;
    get url(): string;
    get viewable(): boolean;
    awaitMessageComponent<ComponentType extends MessageComponentType>(
        options?: AwaitMessageCollectorOptionsParams<ComponentType, true>,
    ): Promise<MappedInteractionTypes<boolean>[ComponentType]>;
    awaitMessages(
        options?: AwaitMessagesOptions,
    ): Promise<Collection<string, Message<boolean>>>;
    bulkDelete(
        messages:
            | number
            | Collection<string, Message<boolean>>
            | readonly MessageResolvable[],
        filterOld?: boolean,
    ): Promise<
        Collection<string, undefined | Message<boolean> | PartialMessage>,
    >;
    createMessageCollector(options?: MessageCollectorOptions): MessageCollector;
    createMessageComponentCollector<ComponentType extends MessageComponentType>(
        options?: MessageChannelCollectorOptionsParams<ComponentType, true>,
    ): InteractionCollector<MappedInteractionTypes<boolean>[ComponentType]>;
    delete(reason?: string): Promise<PublicThreadChannel<Forum>>;
    edit(options: ThreadEditOptions): Promise<PublicThreadChannel<Forum>>;
    fetch(force?: boolean): Promise<PublicThreadChannel<Forum>>;
    fetchOwner(
        options?: FetchThreadOwnerOptions,
    ): Promise<null | ThreadMember<boolean>>;
    fetchStarterMessage(
        options?: BaseFetchOptions,
    ): Promise<null | Message<true>>;
    isDMBased(): this is DMChannel | PartialDMChannel | PartialGroupDMChannel;
    isSendable(): this is SendableChannels;
    isTextBased(): this is TextBasedChannel;
    isThread(): this is AnyThreadChannel;
    isThreadOnly(): this is ThreadOnlyChannel;
    isVoiceBased(): this is VoiceBasedChannel;
    join(): Promise<PublicThreadChannel<Forum>>;
    leave(): Promise<PublicThreadChannel<Forum>>;
    permissionsFor(
        memberOrRole: GuildMember | Role,
        checkAdmin?: boolean,
    ): Readonly<PermissionsBitField>;
    permissionsFor(
        memberOrRole:
            | string
            | User
            | GuildMember
            | Role
            | Message<boolean>
            | ThreadMember<boolean>,
        checkAdmin?: boolean,
    ): null | Readonly<PermissionsBitField>;
    pin(reason?: string): Promise<If<Forum, PublicThreadChannel<Forum>, never>>;
    send(
        options: string | MessagePayload | MessageCreateOptions,
    ): Promise<Message<true>>;
    sendTyping(): Promise<void>;
    setAppliedTags(
        appliedTags: readonly string[],
        reason?: string,
    ): Promise<If<Forum, PublicThreadChannel<Forum>, never>>;
    setArchived(
        archived?: boolean,
        reason?: string,
    ): Promise<PublicThreadChannel<Forum>>;
    setAutoArchiveDuration(
        autoArchiveDuration: ThreadAutoArchiveDuration,
        reason?: string,
    ): Promise<PublicThreadChannel<Forum>>;
    setInvitable(
        invitable?: boolean,
        reason?: string,
    ): Promise<PublicThreadChannel<Forum>>;
    setLocked(
        locked?: boolean,
        reason?: string,
    ): Promise<PublicThreadChannel<Forum>>;
    setName(name: string, reason?: string): Promise<PublicThreadChannel<Forum>>;
    setRateLimitPerUser(
        rateLimitPerUser: number,
        reason?: string,
    ): Promise<TextBasedChannelFields<true, boolean>>;
    toJSON(...props: Record<string, string | boolean>[]): unknown;
    toString(): `<#${string}>`;
    unpin(
        reason?: string,
    ): Promise<If<Forum, PublicThreadChannel<Forum>, never>>;
    valueOf(): string;
}

Type Parameters

  • Forum extends boolean = boolean

Hierarchy (View Summary)

Properties

appliedTags: string[]
archived: null | boolean
archiveTimestamp: null | number
autoArchiveDuration: null | ThreadAutoArchiveDuration
client: Client<true>
guild: Guild
guildId: string
id: string
invitable: null | boolean
lastMessage: null | Message<boolean>
lastMessageId: null | string
lastPinAt: null | Date
lastPinTimestamp: null | number
locked: null | boolean
memberCount: null | number
messageCount: null | number
name: string
ownerId: string
parentId: null | string
rateLimitPerUser: null | number
totalMessageSent: null | number

Accessors

  • get archivedAt(): null | Date

    Returns null | Date

  • get createdAt(): null | Date

    Returns null | Date

  • get createdTimestamp(): null | number

    Returns null | number

  • get editable(): boolean

    Returns boolean

  • get joinable(): boolean

    Returns boolean

  • get joined(): boolean

    Returns boolean

  • get manageable(): boolean

    Returns boolean

  • get partial(): false

    Returns false

  • get sendable(): boolean

    Returns boolean

  • get unarchivable(): boolean

    Returns boolean

  • get url(): string

    Returns string

  • get viewable(): boolean

    Returns boolean

Methods

  • Parameters

    • ...props: Record<string, string | boolean>[]

    Returns unknown

  • Returns a string representation of an object.

    Returns `<#${string}>`

  • Returns string