mirror of
https://github.com/arthur-pbty/shadowbot.git
synced 2026-06-26 06:33:16 +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:
@@ -52,6 +52,7 @@ impl crate::commands::command_contract::CommandSpec for GiveawayCommand {
|
||||
description: "Affiche une interface rapide pour initier un giveaway depuis le salon courant.",
|
||||
examples: &["+giveaway"],
|
||||
default_aliases: &["gstart", "gw"],
|
||||
allow_in_dm: false,
|
||||
default_permission: 8,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user