setTopic method

void setTopic(
  1. String channel, {
  2. String? topic,
})

Set or clear a channel topic.

Implementation

void setTopic(String channel, {String? topic}) {
  _alive();
  command({'type': 'set_topic', 'channel': channel, 'topic': topic});
}