mirror of
https://github.com/arthur-pbty/shadowbot.git
synced 2026-06-12 08:14:42 +02:00
Refactor command handling and permissions management
- Updated examples formatting in SetpermCommand and LeaveSettingsCommand for consistency. - Consolidated the handling of guild targets into a new utility file (servertarget.rs). - Moved the del command logic to a new utility file (del.rs) for better organization. - Enhanced the set command functionalities by creating a dedicated set.rs file, improving readability and maintainability. - Removed deprecated servertarget.rs and del.rs files from the commands directory. - Improved the help command structure for better readability and maintainability. - Added new utility files for permissions and server target handling to streamline command processing.
This commit is contained in:
@@ -78,7 +78,8 @@ pub async fn handle_autopublishon(ctx: &Context, msg: &Message, args: &[&str]) {
|
||||
.and_then(|value| parse_channel_id(value))
|
||||
.unwrap_or(msg.channel_id);
|
||||
|
||||
let result = db::add_autopublish_channel(&pool, bot_id, guild_id_i64, channel_id.get() as i64).await;
|
||||
let result =
|
||||
db::add_autopublish_channel(&pool, bot_id, guild_id_i64, channel_id.get() as i64).await;
|
||||
|
||||
if result.is_err() {
|
||||
send_embed(
|
||||
|
||||
Reference in New Issue
Block a user