1
2
Fork 0
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:
mat 2025-05-03 07:22:27 +12:00
parent 63e5bd4cfe
commit a824827a02

View file

@ -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),