Skip to content
SinisterRectus edited this page Nov 5, 2016 · 21 revisions

Represents a Discord guild voice channel.

Properties Inherited From Channel

Name Type Mutable Description
isPrivate boolean Whether the channel is private
type string The channel type (text or voice)

Properties Inherited From Container

Name Type Mutable Description
client Client Client object to which the Discord object is known
parent * Parent Discord object

Properties Inherited From GuildChannel

Name Type Mutable Description
guild Guild The guild in which the channel exists
invites function Returns an iterator for the channel's invites (not cached)
name string X The name of the guild channel
permissionOverwriteCount number How many PermissionOverwrites are cached for the channel.
permissionOverwrites function Iterator for the channel's cached PermissionOverwrites.
position number X The position of the channel in the guild's list of channels

Properties Inherited From Snowflake

Name Type Mutable Description
createdAt number Unix time in seconds at which the object was created by Discord
id string Snowflake ID for the object

Class Properties

Name Type Mutable Description
bitrate number X Channel bitrate in bits per seconds (8000 to 9600 or 128000 for VIP guilds)
userLimit number X Limit to the number of users allowed in the channel (use 0 for infinite)

Methods Inherited From Channel

Prototype Description
delete() Deletes the channel. This cannot be undone for guild channels!

Methods Inherited From GuildChannel

Prototype Description
createInvite(maxAge, maxUses, temporary, unique) Creates and returns an invite to the channel for users to join.
findPermissionOverwrite(predicate) Returns the channel's first cached PermissionOverwrite that satisfies a predicate.
findPermissionOverwrites(predicate) Returns an iterator for the channel's cached PermissionOverwrites that satisfy a predicate.
getPermissionOverwrite([key,] value) Returns the channel's first cached PermissionOverwrite that matches the (key, value) pair.
getPermissionOverwrites([key, value]) Returns an iterator for the channel's cached PermissionOverwrites that match the (key, value) pair
Clone this wiki locally