Channel

new DiscordVoice.Channel(manager, guild, user, options);
PARAMETER TYPE DESCRIPTION
manager

The voice time manager.

guild

The guild class.

user

The user class.

options

The channel data.

Properties

  • channelId
  • client
  • data
  • guild
  • guildId
  • options
  • timeInChannel
  • user

Methods

  • delete
  • edit

Properties

.channelId

The channel id.

Type:

.client

The Discord client.

Type:

.data

The raw channel data object.

Scope: readonly

.guild

The guild class.

Type:

.guildId

The guild id.

Type:

.options

The channel data.

.timeInChannel

The time spent in this channel.

Type:

.user

The user class.

Type:

Methods

.delete();

Deletes the channel.

Returns:

.edit(options);

Edits the channel.

PARAMETER TYPE DESCRIPTION
options

The new channel options.

Returns: