mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
reword SwarmEvent::Disconnect doc
This commit is contained in:
parent
63e5bd4cfe
commit
a824827a02
1 changed files with 6 additions and 2 deletions
|
@ -602,8 +602,12 @@ pub enum SwarmEvent {
|
|||
Init,
|
||||
/// A bot got disconnected from the server.
|
||||
///
|
||||
/// You can implement an auto-reconnect by calling [`Swarm::add_with_opts`]
|
||||
/// with the account and options from this event.
|
||||
/// If you'd like to implement special auto-reconnect behavior beyond what's
|
||||
/// built-in, you can disable that with [`SwarmBuilder::reconnect_delay`]
|
||||
/// and then call [`Swarm::add_with_opts`] with the account and options
|
||||
/// from this event.
|
||||
///
|
||||
/// [`SwarmBuilder::reconnect_delay`]: crate::swarm::SwarmBuilder::reconnect_after
|
||||
Disconnect(Box<Account>, JoinOpts),
|
||||
/// At least one bot received a chat message.
|
||||
Chat(ChatPacket),
|
||||
|
|
Loading…
Add table
Reference in a new issue