Add more documentation

This commit is contained in:
2025-08-13 14:48:47 -03:00
parent e35b200d03
commit a14ae96a47
5 changed files with 59 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
//! Call commands and events.
pub mod commands;
pub mod events;
pub(super) mod moderation;
+4
View File
@@ -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;
+2
View File
@@ -1 +1,3 @@
//! Logging gateway events.
pub mod events;
+1 -1
View File
@@ -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.