Skip to main content

Set DND by subchannel

Set the do not disturb level for a specific community subchannel by calling subChannel.setNoDisturbLevel().

Set the DND level

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