#[non_exhaustive]pub struct VoiceChannel {Show 15 fields
pub id: ChannelId,
pub guild_id: Option<GuildId>,
pub name: CompactString,
pub position: i32,
pub permission_overwrites: Vec<Overwrite>,
pub parent_id: Option<ChannelId>,
pub nsfw: bool,
pub topic: Option<CompactString>,
pub last_message_id: Option<MessageId>,
pub rate_limit_per_user: u16,
pub bitrate: u32,
pub user_limit: u32,
pub rtc_region: Option<CompactString>,
pub video_quality_mode: VideoQualityMode,
pub flags: ChannelFlags,
}Expand description
A voice or stage channel in a guild.
Voice channels also have a text chat.
discord.js counterpart: VoiceChannel / StageChannel.
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.id: ChannelIdThe channel’s ID.
guild_id: Option<GuildId>The guild; None inside GUILD_CREATE.
name: CompactStringThe channel’s name (1-100 characters).
position: i32The sorting position.
permission_overwrites: Vec<Overwrite>Explicit permissions for roles and members.
parent_id: Option<ChannelId>The parent category.
nsfw: boolWhether the channel is age-restricted.
topic: Option<CompactString>The topic of a stage channel.
last_message_id: Option<MessageId>The last message sent in the channel’s text chat.
rate_limit_per_user: u16Slowmode of the text chat, in seconds.
bitrate: u32The audio bitrate in bits per second.
user_limit: u32The maximum number of users; 0 means no limit.
rtc_region: Option<CompactString>The voice region;
None means automatic.
video_quality_mode: VideoQualityModeThe camera video quality.
flags: ChannelFlagsThe channel’s flags.
Trait Implementations§
Source§impl Clone for VoiceChannel
impl Clone for VoiceChannel
Source§impl Debug for VoiceChannel
impl Debug for VoiceChannel
impl Eq for VoiceChannel
Source§impl PartialEq for VoiceChannel
impl PartialEq for VoiceChannel
Source§impl Serialize for VoiceChannel
impl Serialize for VoiceChannel
impl StructuralPartialEq for VoiceChannel
Auto Trait Implementations§
impl Freeze for VoiceChannel
impl RefUnwindSafe for VoiceChannel
impl Send for VoiceChannel
impl Sync for VoiceChannel
impl Unpin for VoiceChannel
impl UnsafeUnpin for VoiceChannel
impl UnwindSafe for VoiceChannel
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