fmt: re-organise the regular data request
This commit is contained in:
parent
3927734083
commit
273c58d035
3 changed files with 12 additions and 9 deletions
|
@ -6,7 +6,7 @@ use serenity::{
|
|||
prelude::{command::CommandOptionType, interaction::application_command::CommandDataOptionValue},
|
||||
},
|
||||
};
|
||||
use skynet_discord_bot::common::wolves::get_data::get_wolves_cns;
|
||||
use skynet_discord_bot::common::wolves::cns::get_wolves;
|
||||
use skynet_discord_bot::{is_admin, set_roles::update_server};
|
||||
use sqlx::{Error, Pool, Sqlite};
|
||||
use skynet_discord_bot::common::database::{get_server_config, DataBase, Servers};
|
||||
|
@ -216,7 +216,7 @@ async fn add_server(db: &Pool<Sqlite>, ctx: &Context, server: &Servers) -> Resul
|
|||
// update all users
|
||||
if update {
|
||||
// handle wolves api here
|
||||
get_wolves_cns(ctx).await;
|
||||
get_wolves(ctx).await;
|
||||
|
||||
let mut roles_remove = vec![];
|
||||
if current_remove {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue