converted tabs to spaces & updated gitignore
This commit is contained in:
@@ -3,9 +3,9 @@ use crate::{Context, Error, db_cmds::{add_server, reddit_channel, wwrps_channel}
|
||||
|
||||
#[derive(poise::ChoiceParameter, PartialEq)]
|
||||
pub enum Subcommands {
|
||||
AddServer,
|
||||
RedditChannel,
|
||||
WWRPSChannel
|
||||
AddServer,
|
||||
RedditChannel,
|
||||
WWRPSChannel
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ pub enum Subcommands {
|
||||
category = "db",
|
||||
rename = "database",
|
||||
owners_only,
|
||||
default_member_permissions = "ADMINISTRATOR",
|
||||
default_member_permissions = "ADMINISTRATOR",
|
||||
required_bot_permissions = "SEND_MESSAGES | VIEW_CHANNEL"
|
||||
)]
|
||||
/// Various debug utilities
|
||||
@@ -26,8 +26,8 @@ pub async fn cmd(
|
||||
{
|
||||
match subcommand {
|
||||
Subcommands::AddServer => add_server::cmd(ctx).await?,
|
||||
Subcommands::RedditChannel => reddit_channel::cmd(ctx).await?,
|
||||
Subcommands::WWRPSChannel => wwrps_channel::cmd(ctx).await?,
|
||||
Subcommands::RedditChannel => reddit_channel::cmd(ctx).await?,
|
||||
Subcommands::WWRPSChannel => wwrps_channel::cmd(ctx).await?,
|
||||
//_ => return Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user