unpin method

Future<void> unpin()

Implementation

Future<void> unpin () async {
  if (!isPinned) {
    ioc.use<MineralCli>().console.warn('Message $id isn\'t pinned');
    return;
  }

  await ioc.use<HttpService>().destroy(url: '/channels/${channel.id}/pins/$id');
}