blob: 260f1f556111bcb9b244b005a95f06d9cd3ed05e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use serenity::framework::standard::Command;
use serenity::prelude::Mutex;
use std::collections::HashMap;
use std::sync::Arc;
use typemap::TypeMap;
pub type WispResult<T = ()> = Result<T, Box<dyn std::error::Error + Send + Sync>>;
pub type CommandMap = HashMap<String, dyn Command>;
#[derive(Clone)]
pub struct WispData {
// pub writer: Arc<Mutex<Writer>>,
// pub commands: CommandMap,
pub data: Arc<Mutex<TypeMap>>
}
|