iOS’s Do Not Disturb mode is now part of the new “Focus Mode,” which lets you create different Focus profiles that block notifications from certain apps and pause specific features. For example, the “Work” Focus mode will shut out distractions from social media, YouTube, and messages, but won’t affect email, Slack, or other productivity apps. Your contacts will see a visual notification that you’re in Focus or Do Not Disturb mode in certain apps, too.
Focus Mode has presets for Work, Sleep, and Personal, but you can create your own. Of course, if you want to block all notifications, Do Not Disturb mode is still available, too.