mirror of
https://github.com/Noratrieb/discord-court-bot.git
synced 2026-01-17 03:15:01 +01:00
handle handlers
This commit is contained in:
parent
9014ff6eff
commit
724d7467c3
7 changed files with 350 additions and 208 deletions
20
src/lawsuit.rs
Normal file
20
src/lawsuit.rs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
use serenity::model::id::{ChannelId, UserId};
|
||||
|
||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
|
||||
pub enum LawsuitState {
|
||||
Initial,
|
||||
InProgress,
|
||||
Completed,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Lawsuit {
|
||||
pub plaintiff: UserId,
|
||||
pub accused: UserId,
|
||||
pub plaintiff_layer: Option<UserId>,
|
||||
pub accused_layer: Option<UserId>,
|
||||
pub reason: String,
|
||||
pub state: LawsuitState,
|
||||
pub court_room: ChannelId,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue