Class UnknownChannel

A channel of a type botloader doesn't know about yet (e.g a new channel type discord added).

kind will be "Unknown", use BaseChannel.kindId to tell what type of channel it is.

Hierarchy (view full)

Properties

Channel flags, e.g whether this channel is a spoiler channel, a pinned forum post, or if its metadata was obfuscated because the bot can't view it.

id: string
kind: "Unknown" = "Unknown"
kindId: number

The raw discord channel type id, compare against ChannelTypes.

Unlike kind this is also meaningful for channel types botloader doesn't have a name for yet.

Example

if (channel.kindId === ChannelTypes.Forum) {
// ...
}
name: string
parentId: null | string
permissionOverwrites: IPermissionOverwrite[]
position: null | number

Methods

Generated using TypeDoc