You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The event VOICE_CHANNEL_EFFECT_SEND in the intent GUILD_VOICE_STATES has been added.
The event is sent when someone sends an effect in a voice channel the bot user is connected to.
It sends a VoiceChannelEffectSend object.
// Mostly psudocodestructSoundboardSoundId(...);structAnimationId(...);enum_number!{
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd, Deserialize, Serialize)]
#[cfg_attr(feature = "typesize", derive(typesize::derive::TypeSize))]
#[non_exhaustive]enumAnimationType{Premium = 0,
Basic = 1,
_ => Unknown(u8),
}}structVoiceChannelEffectSend{/// ID of the channel the effect was sent in.channel_id:ChannelId,/// ID of the guild the effect was sent in.guild_id:GuildId,/// ID of the user who sent the effect.user_id:UserId,/// The emoji sent, for emoji reaction and soundboard effects.emoji:Option<Emoji>,/// The type of emoji animation, for emoji reaction and soundboard effects.animation_type:Option<AnimationType>,/// The ID of the emoji animation, for emoji reaction and soundboard effectsanimation_id:AnimationId/// The ID of the soundboard sound, for soundboard effects
sound_id:Option<SoundboardSoundId>,/// The volume of the soundboard sound, from 0 to 1, for soundboard effectssound_volume:Option<f64>,}
Note: The Soundboard ID and Animation ID structures have been suggested as part of the implementation, just in case more parts of the soundboard API becomes available for bots in the near future.
A new event with 4+ new types has been added.
The event
VOICE_CHANNEL_EFFECT_SEND
in the intentGUILD_VOICE_STATES
has been added.The event is sent when someone sends an effect in a voice channel the bot user is connected to.
It sends a
VoiceChannelEffectSend
object.Note: The Soundboard ID and Animation ID structures have been suggested as part of the implementation, just in case more parts of the soundboard API becomes available for bots in the near future.
Discord API docs change commit
The text was updated successfully, but these errors were encountered: