DiscordLua
discorddiscord
v1.2.4
Install

VoiceChannelEffect

Class
On this page

VoiceChannelEffect is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.

class Module 1.2.4 Source

Properties

VoiceChannelEffect.animationId

# readonly
Name
animationId
Type
any
Access
readonly
Description
Instance field VoiceChannelEffect.animationId. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this VoiceChannelEffect.

VoiceChannelEffect.animationType

# readonly
Name
animationType
Type
any
Access
readonly
Description
Instance field VoiceChannelEffect.animationType. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this VoiceChannelEffect.

VoiceChannelEffect.channelId

# readonly
Name
channelId
Type
any
Access
readonly
Description
Instance field VoiceChannelEffect.channelId. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this VoiceChannelEffect.

VoiceChannelEffect.client

# readonly
Name
client
Type
any
Access
readonly
Description
Owning Client instance used for REST, cache, and event dispatch.
Availability
Populated from the Gateway/REST payload or constructor for this VoiceChannelEffect.

VoiceChannelEffect.emoji

# readonly
Name
emoji
Type
any
Access
readonly
Description
Instance field VoiceChannelEffect.emoji. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this VoiceChannelEffect.

VoiceChannelEffect.guildId

# readonly
Name
guildId
Type
any
Access
readonly
Description
Instance field VoiceChannelEffect.guildId. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this VoiceChannelEffect.

VoiceChannelEffect.raw

# readonly
Name
raw
Type
any
Access
readonly
Description
Instance field VoiceChannelEffect.raw. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this VoiceChannelEffect.

VoiceChannelEffect.soundId

# readonly
Name
soundId
Type
any
Access
readonly
Description
Instance field VoiceChannelEffect.soundId. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this VoiceChannelEffect.

VoiceChannelEffect.soundVolume

# readonly
Name
soundVolume
Type
any
Access
readonly
Description
Instance field VoiceChannelEffect.soundVolume. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this VoiceChannelEffect.

VoiceChannelEffect.userId

# readonly
Name
userId
Type
any
Access
readonly
Description
Instance field VoiceChannelEffect.userId. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this VoiceChannelEffect.

Methods

VoiceChannelEffect:channel()

#

Performs channel on this VoiceChannelEffect. Call it from bot code when you need that operation on the current object.

Signature

VoiceChannelEffect:channel()

Parameters

No parameters.

Returns

VoiceChannelEffect — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a VoiceChannelEffect
object:channel()

VoiceChannelEffect:guild()

#

Performs guild on this VoiceChannelEffect. Call it from bot code when you need that operation on the current object.

Signature

VoiceChannelEffect:guild()

Parameters

No parameters.

Returns

VoiceChannelEffect — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a VoiceChannelEffect
object:guild()

VoiceChannelEffect:soundboardSound()

#

Performs soundboard sound on this VoiceChannelEffect. Call it from bot code when you need that operation on the current object.

Signature

VoiceChannelEffect:soundboardSound()

Parameters

No parameters.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a VoiceChannelEffect
object:soundboardSound()

Examples

Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.

ActionRow · Activity · ActivityInstance · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc