#[non_exhaustive]pub struct VoiceChannelEffectSend {
pub channel_id: ChannelId,
pub guild_id: GuildId,
pub user_id: UserId,
pub emoji: Option<PartialEmoji>,
pub animation_type: Option<VoiceChannelEffectAnimationType>,
pub animation_id: Option<u64>,
pub sound_id: Option<SoundboardSoundId>,
pub sound_volume: Option<f64>,
}Expand description
The data of the Voice Channel Effect Send dispatch event: someone sent an emoji reaction or soundboard sound in the bot’s voice channel.
discord.js counterpart: the VoiceChannelEffectSend event.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.channel_id: ChannelIdThe channel.
guild_id: GuildIdThe guild.
user_id: UserIdThe user who sent the effect.
emoji: Option<PartialEmoji>The emoji (emoji reactions and soundboard sounds).
animation_type: Option<VoiceChannelEffectAnimationType>The kind of animation.
animation_id: Option<u64>The animation’s ID.
sound_id: Option<SoundboardSoundId>The soundboard sound (soundboard effects).
sound_volume: Option<f64>The sound’s volume, from 0 to 1.
Trait Implementations§
Source§impl Clone for VoiceChannelEffectSend
impl Clone for VoiceChannelEffectSend
Source§impl Debug for VoiceChannelEffectSend
impl Debug for VoiceChannelEffectSend
Source§impl<'de> Deserialize<'de> for VoiceChannelEffectSend
impl<'de> Deserialize<'de> for VoiceChannelEffectSend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VoiceChannelEffectSend
impl PartialEq for VoiceChannelEffectSend
Source§impl Serialize for VoiceChannelEffectSend
impl Serialize for VoiceChannelEffectSend
impl StructuralPartialEq for VoiceChannelEffectSend
Auto Trait Implementations§
impl Freeze for VoiceChannelEffectSend
impl RefUnwindSafe for VoiceChannelEffectSend
impl Send for VoiceChannelEffectSend
impl Sync for VoiceChannelEffectSend
impl Unpin for VoiceChannelEffectSend
impl UnsafeUnpin for VoiceChannelEffectSend
impl UnwindSafe for VoiceChannelEffectSend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more