This interface is used to allow easy extension for other channel types. While also allowing APIPartialChannel to be used without breaking.

interface APIChannelBase<T extends ChannelType> {
    flags?: ChannelFlags;
    id: string;
    type: T;
}

Type Parameters

Hierarchy (View Summary)

Properties

Properties

flags?: ChannelFlags
id: string

The id of the channel

type: T

The type of the channel