If you want Discord to scan your DMs, click on the Keep Me Safe option. That way, the platform will scan all images and messages sent to your DMs and delete any explicit content.