allowsDm property
override
Whether this check will allow commands to be executed in DM channels.
If this is false
, users will be unable to execute slash commands in DM channels with the
bot. However, users might still execute a text ChatCommand in DMs, so further validation in
the check itself is required.
You might also be interested in:
- requiredPermissions, for fine-tuning how commands can be executed in a guild.
Implementation
@override
bool get allowsDm => true;