oceanic.js
Version:
A NodeJS library for interfacing with Discord.
19 lines (18 loc) • 939 B
TypeScript
/** @module AnnouncementThreadChannel */
import ThreadChannel from "./ThreadChannel";
import type { ChannelTypes } from "../Constants";
import type Client from "../Client";
import type { GetThreadMembersOptions, RawAnnouncementThreadChannel, ThreadMember, ThreadMetadata } from "../types/channels";
import type { JSONAnnouncementThreadChannel } from "../types/json";
/** Represents a public thread channel in an announcement channel. */
export default class AnnouncementThreadChannel extends ThreadChannel<AnnouncementThreadChannel> {
threadMetadata: ThreadMetadata;
type: ChannelTypes.ANNOUNCEMENT_THREAD;
constructor(data: RawAnnouncementThreadChannel, client: Client);
/**
* Get the members of this thread.
* @param options The options for getting the thread members.
*/
getThreadMembers(options?: GetThreadMembersOptions): Promise<Array<ThreadMember>>;
toJSON(): JSONAnnouncementThreadChannel;
}