#[non_exhaustive]pub struct RequestSoundboardSounds {
pub guild_ids: Vec<GuildId>,
}Expand description
Request Soundboard Sounds
(opcode 31): asks for the soundboard sounds of guilds; they arrive in
SoundboardSounds events.
discord.js counterpart: GatewayRequestSoundboardSounds (discord-api-types).
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.guild_ids: Vec<GuildId>The guilds.
Implementations§
Source§impl RequestSoundboardSounds
impl RequestSoundboardSounds
Sourcepub fn new(guild_ids: impl IntoIterator<Item = GuildId>) -> Self
pub fn new(guild_ids: impl IntoIterator<Item = GuildId>) -> Self
Requests the sounds of the given guilds.
discord.js counterpart: GuildManager#fetchSoundboardSounds.
Trait Implementations§
Source§impl Clone for RequestSoundboardSounds
impl Clone for RequestSoundboardSounds
Source§impl Debug for RequestSoundboardSounds
impl Debug for RequestSoundboardSounds
impl Eq for RequestSoundboardSounds
Source§impl PartialEq for RequestSoundboardSounds
impl PartialEq for RequestSoundboardSounds
Source§impl Serialize for RequestSoundboardSounds
impl Serialize for RequestSoundboardSounds
impl StructuralPartialEq for RequestSoundboardSounds
Auto Trait Implementations§
impl Freeze for RequestSoundboardSounds
impl RefUnwindSafe for RequestSoundboardSounds
impl Send for RequestSoundboardSounds
impl Sync for RequestSoundboardSounds
impl Unpin for RequestSoundboardSounds
impl UnsafeUnpin for RequestSoundboardSounds
impl UnwindSafe for RequestSoundboardSounds
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