#[non_exhaustive]pub struct ModifyUserVoiceState {
pub channel_id: Option<ChannelId>,
pub suppress: Option<bool>,
}Expand description
The body of Modify User Voice State.
Every field is optional; needs MUTE_MEMBERS. Unsuppressing a user who is not a bot also
sets their request to speak to now; suppressing removes it.
discord.js counterpart: the argument of VoiceState#edit for other members
(setSuppressed).
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: Option<ChannelId>The stage channel the user is in.
suppress: Option<bool>Whether the user is suppressed.
Trait Implementations§
Source§impl Clone for ModifyUserVoiceState
impl Clone for ModifyUserVoiceState
impl Copy for ModifyUserVoiceState
Source§impl Debug for ModifyUserVoiceState
impl Debug for ModifyUserVoiceState
Source§impl Default for ModifyUserVoiceState
impl Default for ModifyUserVoiceState
impl Eq for ModifyUserVoiceState
Source§impl Hash for ModifyUserVoiceState
impl Hash for ModifyUserVoiceState
Source§impl PartialEq for ModifyUserVoiceState
impl PartialEq for ModifyUserVoiceState
Source§impl Serialize for ModifyUserVoiceState
impl Serialize for ModifyUserVoiceState
impl StructuralPartialEq for ModifyUserVoiceState
Auto Trait Implementations§
impl Freeze for ModifyUserVoiceState
impl RefUnwindSafe for ModifyUserVoiceState
impl Send for ModifyUserVoiceState
impl Sync for ModifyUserVoiceState
impl Unpin for ModifyUserVoiceState
impl UnsafeUnpin for ModifyUserVoiceState
impl UnwindSafe for ModifyUserVoiceState
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