Represents any channel type on Discord.
Represents any channel type on Discord that exists within a discord.Guild.
The bitrate of voice data for this channel.
Stage Voice channels currently default to 40kbps (40000 bytes per second).
The id of the discord.Guild this channel resides in.
The name of this channel.
If the channel resides within a discord.GuildCategory, its id is set on this property.
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.
The position in the channel list this channel should be displayed at.
The current topic set by Stage moderators for the session.
May be changed by anyone with MANAGE_CHANNEL permissions.
The type of this channel. Always Channel.Type.GUILD_STAGE_VOICE.
Limits the number of users that can be active in the voice channel at once.
Stage Voice channels currently default to 1000 maximum mebers.
Determines if a member can perform actions that require the permission specified in this channel.
Permissions are calculated off the base member permissions via discord.GuildMember.permissions and the member and role-specific permission overwrites from discord.GuildChannel.permissionOverwrites.
The GuildMember you want to calculate channel-specific permissions for.
The permission you are checking for. Check discord.Permissions for an exhaustive list of all permissions.
true
if the permission is granted, otherwise false
.
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.
The Role you want to calculate channel-specific permissions for.
The permission you are checking for. Check discord.Permissions for an exhaustive list of all permissions.
true
if the permission is granted, otherwise false
.
Creates an invite for the channel. All properties of the options
parameter are optional.
The settings to use for this invite. All parameters are optional.
Attempts to update the given options for this channel.
If an error occurs, a discord.ApiError will be thrown.
The settings to update for this channel.
Fetches the data for the guild this channel belongs to.
Fetches an array of discord.GuildInvite objects associated with this channel.
Returns the calculated member permissions for this channel.
It is calculated off the base member permissions via discord.GuildMember.permissions and the member and role-specific permission overwrites from discord.GuildChannel.permissionOverwrites.
Note: If you just want to see if a member has a permission, use discord.GuildChannel.canMember.
The GuildMember you want to calculate channel-specific permissions for.
The permission bit set calculated for the given member.
Attempts to fetch an instance of the discord.GuildCategory this channel resides in.
If an error occurs, a discord.ApiError will be thrown.
If the channel does not reside in a cateogry, the Promise resolves as null
.
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.
The Role you want to calculate channel-specific permissions for.
The permission bit set calculated for the given role.
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.
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.
Generated using TypeDoc
A special discord.Guild voice channel for Community servers.
In these channels, audience members can listen to users elected to the stage by moderators.