Carbon
CoreClasses

GuildVoiceChannel

Extends

Type Parameters

Type ParameterDefault type
IsPartial extends booleanfalse

Constructors

new GuildVoiceChannel()

new GuildVoiceChannel<IsPartial>(client, rawDataOrId): GuildVoiceChannel<IsPartial>

Parameters

ParameterType
clientClient
rawDataOrIdIsPartial extends true ? string : APIGuildVoiceChannel

Returns

GuildVoiceChannel<IsPartial>

Inherited from

GuildStageOrVoiceChannel.constructor

Properties

PropertyModifierTypeDescriptionOverridesInherited from
clientpublicClient--GuildStageOrVoiceChannel.client
idreadonlystringThe id of the channel.-GuildStageOrVoiceChannel.id
rawDatapublicnull | APIGuildVoiceChannelThe raw data of the channel.GuildStageOrVoiceChannel.rawData-

Accessors

bitrate

get bitrate(): IfPartial<IsPartial, undefined | number>

The bitrate of the channel.

Returns

IfPartial<IsPartial, undefined | number>

Inherited from

GuildStageOrVoiceChannel.bitrate


flags

get flags(): IfPartial<IsPartial, undefined | ChannelFlags>

The flags of the channel in a bitfield.

See

https://discord.com/developers/docs/resources/channel#channel-object-channel-flags

Returns

IfPartial<IsPartial, undefined | ChannelFlags>

Inherited from

GuildStageOrVoiceChannel.flags


guild

get guild(): IfPartial<IsPartial, Guild<true>>

The guild this channel is in

Returns

IfPartial<IsPartial, Guild<true>>

Inherited from

GuildStageOrVoiceChannel.guild


guildId

get guildId(): IfPartial<IsPartial, string>

The ID of the guild this channel is in

Returns

IfPartial<IsPartial, string>

Inherited from

GuildStageOrVoiceChannel.guildId


name

get name(): IfPartial<IsPartial, string>

The name of the channel.

Returns

IfPartial<IsPartial, string>

Inherited from

GuildStageOrVoiceChannel.name


nsfw

get nsfw(): IfPartial<IsPartial, boolean>

Whether the channel is marked as nsfw.

Returns

IfPartial<IsPartial, boolean>

Inherited from

GuildStageOrVoiceChannel.nsfw


parentId

get parentId(): IfPartial<IsPartial, null | string>

The ID of the parent category for the channel.

Returns

IfPartial<IsPartial, null | string>

Inherited from

GuildStageOrVoiceChannel.parentId


partial

get partial(): IsPartial

Whether the channel is a partial channel (meaning it does not have all the data). If this is true, you should use BaseChannel.fetch to get the full data of the channel.

Returns

IsPartial

Inherited from

GuildStageOrVoiceChannel.partial


position

get position(): IfPartial<IsPartial, number>

The position of the channel in the channel list.

Returns

IfPartial<IsPartial, number>

Inherited from

GuildStageOrVoiceChannel.position


rtcRegion

get rtcRegion(): IfPartial<IsPartial, null | string>

The RTC region of the channel. This is automatic when set to null.

Returns

IfPartial<IsPartial, null | string>

Inherited from

GuildStageOrVoiceChannel.rtcRegion


type

get type(): IfPartial<IsPartial, Type>

The type of the channel.

Returns

IfPartial<IsPartial, Type>

Inherited from

GuildStageOrVoiceChannel.type


userLimit

get userLimit(): IfPartial<IsPartial, undefined | number>

The user limit of the channel.

Returns

IfPartial<IsPartial, undefined | number>

Inherited from

GuildStageOrVoiceChannel.userLimit


videoQualityMode

get videoQualityMode(): IfPartial<IsPartial, VideoQualityMode>

The video quality mode of the channel. 1 when not present.

Returns

IfPartial<IsPartial, VideoQualityMode>

Inherited from

GuildStageOrVoiceChannel.videoQualityMode

Methods

createInvite()

createInvite(options?): Promise<APIExtendedInvite>

Create an invite for the channel

Parameters

ParameterType
options?RESTPostAPIChannelInviteJSONBody

Returns

Promise<APIExtendedInvite>

Inherited from

GuildStageOrVoiceChannel.createInvite


fetch()

fetch(): Promise<void>

Fetches the channel from the API.

Returns

Promise<void>

The channel data.

Inherited from

GuildStageOrVoiceChannel.fetch


getInvites()

getInvites(): Promise<RESTGetAPIGuildInvitesResult>

Get the invites for the channel

Returns

Promise<RESTGetAPIGuildInvitesResult>

Inherited from

GuildStageOrVoiceChannel.getInvites


send()

send(message): Promise<void>

Send a message to the channel

Parameters

ParameterType
messageMessagePayload

Returns

Promise<void>

Inherited from

GuildStageOrVoiceChannel.send


setData()

protected setData(data): void

Parameters

ParameterType
dataAPIGuildVoiceChannel

Returns

void

Inherited from

GuildStageOrVoiceChannel.setData


setField()

protected setField(field, value): void

Parameters

ParameterType
field"id" | "name" | "rate_limit_per_user" | "last_message_id" | "type" | "flags" | "guild_id" | "permission_overwrites" | "position" | "parent_id" | "nsfw" | "bitrate" | "user_limit" | "rtc_region" | "video_quality_mode"
valueunknown

Returns

void

Inherited from

GuildStageOrVoiceChannel.setField


setName()

setName(name): Promise<void>

Set the name of the channel

Parameters

ParameterTypeDescription
namestringThe new name of the channel

Returns

Promise<void>

Inherited from

GuildStageOrVoiceChannel.setName


setNsfw()

setNsfw(nsfw): Promise<void>

Set whether the channel is nsfw

Parameters

ParameterTypeDescription
nsfwbooleanThe new nsfw status of the channel

Returns

Promise<void>

Inherited from

GuildStageOrVoiceChannel.setNsfw


setParent()

setParent(parent): Promise<void>

Set the parent ID of the channel

Parameters

ParameterTypeDescription
parentstring | GuildCategoryChannel<false>The new category channel or ID to set

Returns

Promise<void>

Inherited from

GuildStageOrVoiceChannel.setParent


setPosition()

setPosition(position): Promise<void>

Set the position of the channel

Parameters

ParameterTypeDescription
positionnumberThe new position of the channel

Returns

Promise<void>

Inherited from

GuildStageOrVoiceChannel.setPosition


triggerTyping()

triggerTyping(): Promise<void>

Trigger a typing indicator in the channel (this will expire after 10 seconds)

Returns

Promise<void>

Inherited from

GuildStageOrVoiceChannel.triggerTyping

On this page

Edit on GitHub