pin method

Future<void> pin(
  1. Snowflake webhookId
)

Implementation

Future<void> pin (Snowflake webhookId) async {
  if (isPinned) {
    ioc.use<MineralCli>().console.warn('Message $id is already pinned');
    return;
  }

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