Add more documentation
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//! Call commands and events.
|
||||
|
||||
pub mod commands;
|
||||
pub mod events;
|
||||
pub(super) mod moderation;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! Payphone's Discord server-related features.
|
||||
//! Adding, updating, and removing servers from the database.
|
||||
//!
|
||||
//! This sub-module is responsible for registering servers in the database, updating them when they
|
||||
//! update, and removing them when they get deleted or Payphone is kicked.
|
||||
|
||||
Reference in New Issue
Block a user