added new config option, refactored other code
This commit is contained in:
+2
-7
@@ -1,8 +1,7 @@
|
||||
use poise::Command;
|
||||
use std::{collections::HashMap, error::Error as StdErr};
|
||||
use std::collections::HashMap;
|
||||
use tokio::fs;
|
||||
|
||||
use crate::{lang, messages::send_msg, Context, Data, Error};
|
||||
use crate::{lang, messages::send_msg, Context, Cmd, Error};
|
||||
|
||||
|
||||
#[derive(poise::ChoiceParameter, PartialEq)]
|
||||
@@ -15,10 +14,6 @@ enum HelpOptions {
|
||||
}
|
||||
|
||||
|
||||
type Cmd = Command<Data, Box<dyn StdErr + Send + Sync>>;
|
||||
|
||||
|
||||
|
||||
#[poise::command(
|
||||
slash_command,
|
||||
prefix_command,
|
||||
|
||||
Reference in New Issue
Block a user