Gimp.Item.prototype.get_id

function get_id(): Number(gint32) {
    // Gjs wrapper for gimp_item_get_id()
}
  

Since 3.0

Returns

the item ID.