setRateLimit method

Future<void> setRateLimit(
  1. int limit
)

Define the rate limit of this

final TextChannel channel = guild.channels.cache.getOrFail('240561194958716924');
await channel.setRateLimit(5000); // Rate limit for 5 seconds

Implementation

Future<void> setRateLimit (int limit) async {
  await update(ChannelBuilder({ 'rate_limit': limit }));
}