Results

Namespace

Type

A special discord.Guild voice channel for Community servers.

In these channels, audience members can listen to users elected to the stage by moderators.

Hierarchy

Implements

Index

Type aliases

Static AnyChannel

Represents any channel type on Discord.

Static AnyGuildChannel

Represents any channel type on Discord that exists within a discord.Guild.

Properties

Readonly bitrate

bitrate: number

The bitrate of voice data for this channel.

Stage Voice channels currently default to 40kbps (40000 bytes per second).

Readonly guildId

guildId: Snowflake

The id of the discord.Guild this channel resides in.

Readonly name

name: string

The name of this channel.

Readonly parentId

parentId: Snowflake | null

If the channel resides within a discord.GuildCategory, its id is set on this property.

Readonly permissionOverwrites

permissionOverwrites: IPermissionOverwrite[]

Any member or role-specific permission overwrite settings for this channel.

Note: You should use discord.GuildChannel.getMemberPermissions or the easier discord.GuildChannel.canMember function to test member permissions for a given channel.

Readonly position

position: number

The position in the channel list this channel should be displayed at.

Readonly topic

topic: string | null

The current topic set by Stage moderators for the session.

May be changed by anyone with MANAGE_CHANNEL permissions.

Readonly type

The type of this channel. Always Channel.Type.GUILD_STAGE_VOICE.

Readonly userLimit

userLimit: number

Limits the number of users that can be active in the voice channel at once.

Stage Voice channels currently default to 1000 maximum mebers.

Methods

canMember

canRole

  • canRole(role: Role, permission: Permissions): boolean
  • Determines if a role can perform actions that require the permission specified in this channel.

    The permissions are calculated by finding the role in discord.GuildChannel.permissionOverwrites and applying on top of the everyone role permissions for the channel.

    Parameters

    • role: Role

      The Role you want to calculate channel-specific permissions for.

    • permission: Permissions

      The permission you are checking for. Check discord.Permissions for an exhaustive list of all permissions.

    Returns boolean

    true if the permission is granted, otherwise false.

createInvite

edit

getGuild

getInvites

getMemberPermissions

getParent

getRolePermissions

  • getRolePermissions(role: Role): number
  • Returns the calculated role permissions for this channel.

    The permissions are calculated by finding the role in discord.GuildChannel.permissionOverwrites and applying on top of the everyone role permissions for the channel.

    Note: If you just want to see if a role has a permission, use discord.GuildChannel.canRole.

    Parameters

    • role: Role

      The Role you want to calculate channel-specific permissions for.

    Returns number

    The permission bit set calculated for the given role.

toMention

  • toMention(): string
  • Returns a mention string in the format of <#id> where id is the id of this channel.

    Can be used in a message to render a link to this channel.

    Returns string

voiceConnect

  • voiceConnect(): Promise<void>
  • Requests a voice session for this channel. Listen for discord.Event.VOICE_SERVER_UPDATE events for voice server connection information.

    If an error occurs, a discord.ApiError exception is thrown.

    Returns Promise<void>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc