Type alias ServerChannelPayload

ServerChannelPayload: {
    archivedAt?: string;
    archivedBy?: string;
    categoryId?: number;
    createdAt: string;
    createdBy: string;
    groupId: string;
    id: string;
    isPublic?: boolean;
    messageId?: string;
    name: string;
    parentId?: string;
    rootId?: string;
    serverId: string;
    topic?: string;
    type: "announcements" | "chat" | "calendar" | "forums" | "media" | "docs" | "voice" | "list" | "scheduling" | "stream";
    updatedAt?: string;
    visibility?: "private" | "public" | null;
}

Type declaration

  • Optional archivedAt?: string

    The ISO 8601 timestamp that the channel was archived at, if relevant

  • Optional archivedBy?: string

    The ID of the user who archived this channel

  • Optional categoryId?: number

    The category that the channel exists in. Only relevant for server channels

  • createdAt: string

    The ISO 8601 timestamp that the channel was created at

  • createdBy: string

    The ID of the user who created this channel

  • groupId: string

    The ID of the group

  • id: string

    The ID of the channel

  • Optional isPublic?: boolean

    [DEPRECATED - use visibility instead] Whether the channel can be accessed from users who are not member of the server. Not applicable to threads

  • Optional messageId?: string

    The ID of the message that this channel was created off of. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present

  • name: string

    The name of the channel

  • Optional parentId?: string

    ID of the immediate parent channel or thread in the channel hierarchy. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present

  • Optional rootId?: string

    ID of the root channel or thread in the channel hierarchy. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present

  • serverId: string

    The ID of the server

  • Optional topic?: string

    The topic of the channel. Not applicable to threads

  • type: "announcements" | "chat" | "calendar" | "forums" | "media" | "docs" | "voice" | "list" | "scheduling" | "stream"

    The type of channel. This will determine what routes to use for creating content in a channel. For example, if this "chat", then one must use the routes for creating channel messages

  • Optional updatedAt?: string

    The ISO 8601 timestamp that the channel was updated at, if relevant

  • Optional visibility?: "private" | "public" | null

    What users can access the channel. Only applicable to server channels. If not present, this channel will respect normal permissions. public is accessible to everyone, even those who aren't of the server. private is only accessible to explicitly mentioned users. Currently, threads cannot be public and other channels cannot be private. Additionally, private threads can only exist with an associated messageId that is for a private message

Generated using TypeDoc