Class InteractionResolvedChannel

Represents a channel from an interaction option. This can be any guild channel, or a direct message.

Hierarchy (view full)

Constructors

Properties

appPermissions: Permission

The permissions the bot has in the channel.

flags: number

The flags of this channel.

guildID?: string

The id of the guild this channel is in.

id: string
lastMessageID?: null | string

The ID of last message sent in this channel.

lastPinTimestamp?: null | string

The timestamp of the last pinned message in this channel.

name: null | string

The name of this channel.

nsfw?: boolean

If this channel is age gated.

parentID: null | string

The ID of the parent of this channel, if this represents a thread.

permissions: Permission

The permissions the user has in the channel.

position?: number

The position of this channel on the sidebar.

rateLimitPerUser?: number

The amount of seconds between non-moderators sending messages.

threadMetadata: null | ThreadMetadata | PrivateThreadMetadata

The thread metadata associated with this channel, if this represents a thread.

topic?: null | string

The topic of the channel.

The type of this channel.

Accessors

  • get mention(): string
  • A string that will mention this channel.

    Returns string

Methods