interface WithDetails {
    channel_id: number;
    current_user_attributes: {
        can_message: boolean;
        can_message_error: null | string;
        last_read_id: null | number;
    };
    description: null | string;
    icon: null | string;
    last_message_id: number;
    moderated: boolean;
    name: string;
    type:
        | "PUBLIC"
        | "PRIVATE"
        | "MULTIPLAYER"
        | "SPECTATOR"
        | "TEMPORARY"
        | "PM"
        | "GROUP"
        | "ANNOUNCE";
    users: number[];
    uuid: null | string;
}

Hierarchy (view full)

Properties

channel_id: number
current_user_attributes: {
    can_message: boolean;
    can_message_error: null | string;
    last_read_id: null | number;
}

Type declaration

  • can_message: boolean
  • can_message_error: null | string

    The reason why messages can't be sent in this channel

    Is null if messages can be sent

  • last_read_id: null | number

    Is null if no message has been read (I think)

description: null | string
icon: null | string
last_message_id: number
moderated: boolean
name: string
type:
    | "PUBLIC"
    | "PRIVATE"
    | "MULTIPLAYER"
    | "SPECTATOR"
    | "TEMPORARY"
    | "PM"
    | "GROUP"
    | "ANNOUNCE"
users: number[]

The ids of the users that are in the channel

Is empty for public channels

uuid: null | string