Enum discord_sdk::lobby::events::LobbyEvent
source · pub enum LobbyEvent {
Create(Lobby),
Connect(Lobby),
SpeakingStart(SpeakingEvent),
SpeakingStop(SpeakingEvent),
MemberConnect(MemberEvent),
MemberDisconnect(MemberEvent),
MemberUpdate(MemberEvent),
Delete {
id: LobbyId,
},
Update(Lobby),
Message(MessageEvent),
}
Variants§
Create(Lobby)
Connect(Lobby)
SpeakingStart(SpeakingEvent)
Event fired when a user starts speaking in a lobby voice channel.
SpeakingStop(SpeakingEvent)
Event fired when a user stops speaking in a lobby voice channel.
MemberConnect(MemberEvent)
Event fired when a user connects to a lobby.
MemberDisconnect(MemberEvent)
Event fired when a user disconnects from a lobby.
MemberUpdate(MemberEvent)
Event fired when the metadata for a lobby member is changed.
Delete
Event fired when a lobby is deleted, or when the current user disconnects.
Update(Lobby)
Event fired when a lobby is updated. Note that this is only the metadata
on the lobby itself, not the members
.
Message(MessageEvent)
Event fired when a message is sent to the lobby.
Trait Implementations§
source§impl Clone for LobbyEvent
impl Clone for LobbyEvent
source§fn clone(&self) -> LobbyEvent
fn clone(&self) -> LobbyEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for LobbyEvent
impl Send for LobbyEvent
impl Sync for LobbyEvent
impl Unpin for LobbyEvent
impl UnwindSafe for LobbyEvent
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