fix: moved the methods that changes role into their own module folder

This commit is contained in:
silver 2024-10-28 21:34:21 +00:00
parent 61e76db8dd
commit f1138a3c81
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
7 changed files with 283 additions and 286 deletions

View file

@ -1,15 +1,16 @@
use serenity::{
builder::CreateApplicationCommand,
client::Context,
model::{
application::interaction::application_command::ApplicationCommandInteraction,
prelude::{command::CommandOptionType, interaction::application_command::CommandDataOptionValue},
},
builder::CreateApplicationCommand,
client::Context,
model::{
application::interaction::application_command::ApplicationCommandInteraction,
prelude::{command::CommandOptionType, interaction::application_command::CommandDataOptionValue},
},
};
use skynet_discord_bot::common::wolves::cns::get_wolves;
use skynet_discord_bot::{is_admin, set_roles::update_server};
use skynet_discord_bot::is_admin;
use sqlx::{Error, Pool, Sqlite};
use skynet_discord_bot::common::database::{get_server_config, DataBase, Servers};
use skynet_discord_bot::common::set_roles::normal::update_server;
pub async fn run(command: &ApplicationCommandInteraction, ctx: &Context) -> String {
// check if user has high enough permisssions