allowsDm property

  1. @override
FutureOr<bool> allowsDm
final

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:

Implementation

@override
final FutureOr<bool> allowsDm;