Add more documentation
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//! Event handling for the gateway sub-module.
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_trait::async_trait;
|
||||
@@ -11,6 +13,7 @@ use crate::{
|
||||
state::State,
|
||||
};
|
||||
|
||||
/// Logs a ready message when the bot is ready.
|
||||
#[derive(Debug)]
|
||||
pub struct ReadyHandler;
|
||||
|
||||
@@ -27,6 +30,7 @@ impl OnReadyHandler<State> for ReadyHandler {
|
||||
}
|
||||
}
|
||||
|
||||
/// Logs a reconnection message when the gateway asks for a reconnection.
|
||||
#[derive(Debug)]
|
||||
pub struct ReconnectHandler;
|
||||
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
//! Logging gateway events.
|
||||
|
||||
pub mod events;
|
||||
|
||||
Reference in New Issue
Block a user