Add support for extras, conditionally displaying commands in the help command, and start working on moderation commands
This commit is contained in:
@@ -221,6 +221,15 @@ pub enum Commands {
|
||||
default_values = &["redis://127.0.0.1:6379"],
|
||||
)]
|
||||
redis_urls: Vec<String>,
|
||||
|
||||
/// The bot owner's ID, this user will be allowed to assign moderators.
|
||||
#[arg(
|
||||
long,
|
||||
env = "PAYPHONE_OWNER_ID",
|
||||
value_name = "ID",
|
||||
default_value_t = 0
|
||||
)]
|
||||
bot_owner_id: u64,
|
||||
},
|
||||
|
||||
/// Starts a documentation server for the project which serves `cargo doc` and refreshes on
|
||||
|
||||
Reference in New Issue
Block a user