mirror of
https://github.com/arthur-pbty/shadowbot.git
synced 2026-06-03 23:36:25 +02:00
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:
@@ -84,6 +84,7 @@ impl crate::commands::command_contract::CommandSpec for ChangeCommand {
|
||||
description: "Definit le niveau ACL requis pour une commande ou reinitialise les overrides.",
|
||||
examples: &["+change", "+ce", "+help change"],
|
||||
default_aliases: &["chg"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 9,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user