setDefaultRateLimit method

Future<void> setDefaultRateLimit(
  1. Duration duration
)

Defines the default rate limit per user of this

final channel = guild.channels.cache.getOrFail('...');
await channel.setRateLimit(Duration(seconds: 5));

Implementation

Future<void> setDefaultRateLimit (Duration duration) async {
  await update(ChannelBuilder({
    'default_thread_rate_limit_per_user': duration.inMilliseconds
  }));
}