setNsfw method

Future<void> setNsfw(
  1. bool nsfw, {
  2. String? reason,
})

Sets the NSFW status of the channel.

await channel.setNsfw(true);

Implementation

Future<void> setNsfw(bool nsfw, {String? reason}) =>
    _methods.setNsfw(nsfw, reason);