feat: restrict commands from being used in DMs

- Added `allow_in_dm: false` to various moderation, utility, and role management commands to prevent their usage in direct messages.
- Updated the message event handler to check for the `allow_in_dm` flag and respond appropriately when a DM command is attempted.
This commit is contained in:
Puechberty Arthur
2026-04-10 08:53:48 +02:00
parent 82e6ed1ca6
commit 4d92be1ad5
138 changed files with 181 additions and 0 deletions
+1
View File
@@ -71,6 +71,7 @@ impl crate::commands::command_contract::CommandSpec for BannerCommand {
description: "Affiche la banniere de profil dun utilisateur cible ou de lauteur.",
examples: &["+banner", "+br", "+help banner"],
default_aliases: &["bnr"],
allow_in_dm: true,
default_permission: 0,
}
}