setDefaultAutoArchiveDuration method

Future<void> setDefaultAutoArchiveDuration(
  1. int defaultAutoArchiveDuration, {
  2. String? reason,
})

Sets the default auto-archive duration for the channel.

await channel.setDefaultAutoArchiveDuration(60);

Implementation

Future<void> setDefaultAutoArchiveDuration(int defaultAutoArchiveDuration,
        {String? reason}) =>
    _methods.setDefaultAutoArchiveDuration(
        defaultAutoArchiveDuration, reason);