Class TextableVoiceChannel<T>

Represents a guild stage channel.

Type Parameters

Hierarchy

Constructors

Properties

bitrate: number

The bitrate of the stage channel.

guildID: string

The id of the guild this channel is in.

id: string
lastMessage?: null | Message<T>

The last message sent in this channel. This will only be present if a message has been sent within the current session.

lastMessageID: null | string

The ID of last message sent in this channel.

messages: TypedCollection<string, RawMessage, Message<T>, []>

The cached messages in this channel.

name: 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 applicable.

permissionOverwrites: TypedCollection<string, RawOverwrite, PermissionOverwrite, []>

The permission overwrites of this channel.

position: number

The position of this channel on the sidebar.

rateLimitPerUser: number

The amount of seconds between non-moderators sending messages.

rtcRegion: null | string

The id of the voice region of the channel, null is automatic.

topic: null | string

The topic of the channel.

The type of this channel.

userLimit: number

The maximum number of members in this voice channel, 0 is unlimited.

videoQualityMode: VideoQualityModes

The video quality mode of this channel.

voiceMembers: TypedCollection<string, RawMember, Member, [guildID: string]>

Accessors

  • get createdAt(): Date
  • Returns Date

  • get guild(): Guild
  • The guild associated with this channel. This will throw an error if the guild is not cached.

    Returns Guild

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

    Returns string

  • get parent(): undefined | null | CategoryChannel
  • The parent of this channel, if applicable. This will be a text/announcement/forum channel if we're in a thread, category otherwise.

    Returns undefined | null | CategoryChannel

  • get voiceStates(): VoiceState<T>[]
  • The voice states related to this channel.

    Returns VoiceState<T>[]

Methods

  • Create an invite for this channel. If the guild is not a COMMUNITY server, invites can only be made to last 30 days.

    Parameters

    Returns Promise<Invite<"withMetadata", T>>

  • Create a message in this channel.

    Parameters

    Returns Promise<Message<T>>

  • Add a reaction to a message in this channel.

    Parameters

    • messageID: string

      The ID of the message to add a reaction to.

    • emoji: string

      The reaction to add to the message. name:id for custom emojis, and the unicode codepoint for default emojis.

    Returns Promise<void>

  • Create a webhook in this channel.

    Parameters

    Returns Promise<Webhook>

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

    Returns Promise<void>

  • Delete a message in this channel.

    Parameters

    • messageID: string

      The ID of the message to delete.

    • Optional reason: string

      The reason for deleting the message.

    Returns Promise<void>

  • Bulk delete messages in this channel.

    Parameters

    • messageIDs: string[]

      The IDs of the messages to delete. Any duplicates or messages older than two weeks will cause an error.

    • Optional reason: string

      The reason for deleting the messages.

    Returns Promise<number>

  • Delete a permission overwrite on this channel.

    Parameters

    • overwriteID: string

      The ID of the permission overwrite to delete.

    • Optional reason: string

      The reason for deleting the permission overwrite.

    Returns Promise<void>

  • Remove a reaction from a message in this channel.

    Parameters

    • messageID: string

      The ID of the message to remove a reaction from.

    • emoji: string

      The reaction to remove from the message. name:id for custom emojis, and the unicode codepoint for default emojis.

    • Optional user: string

      The user to remove the reaction from, @me for the current user (default).

    Returns Promise<void>

  • Remove all, or a specific emoji's reactions from a message in this channel.

    Parameters

    • messageID: string

      The ID of the message to remove reactions from.

    • Optional emoji: string

      The reaction to remove from the message. name:id for custom emojis, and the unicode codepoint for default emojis. Omit to remove all reactions.

    Returns Promise<void>

  • Edit a message in this channel.

    Parameters

    • messageID: string

      The ID of the message to edit.

    • options: EditMessageOptions

      The options for editing the message.

    Returns Promise<Message<T>>

  • Edit a permission overwrite on this channel.

    Parameters

    • overwriteID: string

      The ID of the permission overwrite to edit.

    • options: EditPermissionOptions

      The options for editing the permission overwrite.

    Returns Promise<void>

  • Get the invites of this channel.

    Returns Promise<Invite<"withMetadata", T>[]>

  • Get a message in this channel.

    Parameters

    • messageID: string

      The ID of the message to get.

    Returns Promise<Message<T>>

  • Get the pinned messages in this channel.

    Returns Promise<Message<T>[]>

  • Get the users who reacted with a specific emoji on a message in this channel.

    Parameters

    • messageID: string

      The ID of the message to get reactions from.

    • emoji: string

      The reaction to remove from the message. name:id for custom emojis, and the unicode codepoint for default emojis.

    • Optional options: GetReactionsOptions

      The options for getting the reactions.

    Returns Promise<User[]>

  • Get the webhooks in this channel.

    Returns Promise<Webhook[]>

  • Join this stage channel.

    Parameters

    • options: Omit<JoinVoiceChannelOptions, "guildID" | "voiceAdapterCreator" | "channelID">

      The options to join the channel with.

    Returns VoiceConnection

  • Leave this stage channel.

    Returns void

  • Get the permissions of a member. If providing an id, the member must be cached.

    Parameters

    • member: string | Member

      The member to get the permissions of.

    Returns Permission

  • Pin a message in this channel.

    Parameters

    • messageID: string

      The ID of the message to pin.

    • Optional reason: string

      The reason for pinning the message.

    Returns Promise<void>

  • Purge an amount of messages from this channel.

    Parameters

    • options: PurgeOptions<T>

      The options to purge. before, after, and around All are mutually exclusive.

    Returns Promise<number>

  • Show a typing indicator in this channel. How long users see this varies from client to client.

    Returns Promise<void>

  • Returns string

  • Unpin a message in this channel.

    Parameters

    • messageID: string

      The ID of the message to unpin.

    • Optional reason: string

      The reason for unpinning the message.

    Returns Promise<void>

  • Parameters

    • Optional timestamp: number | Date

    Returns string

  • Parameters

    • id: string

    Returns Date

  • Parameters

    • id: string

    Returns number

Generated using TypeDoc