unpin method
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');
}
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');
}