Skip to main content

Set default DND level

Set the default do not disturb level for a community channel by calling community.setNoDisturbLevel(). This default applies to all subchannels unless overridden by a subchannel-specific setting.

Set the default DND level

Dart
final community = CommunityChannel('<community-id>');
await community.setNoDisturbLevel(
ChannelNoDisturbLevel.blocked,
(error) {
if (error?.isSuccess == true) {
print('Community DND level set');
}
},
);