Skip to content

VoiceChannel

This data type describes all available data about the voice channel.

Properties

PropertyTypeDescription
idNumberUnique identifier
createdAtDateTimeCreation date and time
nameStringChannel name
typeStringChannel type
mentionStringMention
guildGuildServer information
positionNumberPosition number in channel list (1 is top of the list)
parentCategoryCategory if exists
nsfwBooleantrue if this channel is age restricted
canTalkBooleantrue if bot can send messages in this channel
userLimitNumberMember limit on the channel. 0 is no limit.
bitrateNumberAudio Bitrate
membersList<Member>List of members currently connected to this channel
regionStringChannel Region

Methods

getMessageById(ID)

Returns a message object for specified message ID.

Returns: Message

Warning! Quota

This method can only be invoked 1 times in the same template.

sendMessage(Text)

Sends a simple text message to this channel. Returns true if message has been sent.

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 2 times in the same template:

  • sendMessage
  • sendMessageAndGet
  • Embed#send
  • Embed#sendAndGet
  • Embed#update
  • Embed#updateAndGet

sendMessageAndGet(Text)

Sends a simple text message to this channel. Returns result message object if message has been sent.

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 2 times in the same template:

  • sendMessage
  • sendMessageAndGet
  • Embed#send
  • Embed#sendAndGet
  • Embed#update
  • Embed#updateAndGet

createEmbed()

Creates a new Embed builder.

Returns: Embed

All rights sniffed.