Class InteractionResolvedChannel

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

Hierarchy

  • Channel
    • InteractionResolvedChannel

Constructors

Properties

_cachedCompleteChannel?: any
_cachedParent?: any
appPermissions: Permission

The permissions the bot has in the channel.

id: string
name: null | string

The name of this channel.

parentID: null | string

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

threadMetadata: null | PrivateThreadMetadata | ThreadMetadata

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

The type of this channel.

Accessors

  • get completeChannel(): undefined | AnyImplementedChannel
  • The complete channel this channel option represents, if it's cached.

    Returns undefined | AnyImplementedChannel

  • get createdAt(): Date
  • Returns Date

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

    Returns string

Methods

  • Close a direct message, leave a group channel, or delete a guild channel.

    Returns Promise<void>

  • Returns JSONChannel

  • Returns string

  • Parameters

    • data: unknown

    Returns void

  • Parameters

    • Optional timestamp: number | Date

    Returns string

  • Parameters

    • id: string

    Returns Date

  • Parameters

    • id: string

    Returns number

Generated using TypeDoc